# Packages
No description provided by the author
# README
š GoAI
GoAI is a powerful Go library that seamlessly integrates multiple LLM providers, vector embeddings, and vector storage capabilities. Built for developers who want a clean, unified interface for AI operations.
⨠Features
š¤ Multiple LLM Providers
- OpenAI
- Anthropic Claude
- AWS Bedrock
š Vector Operations
- Efficient embeddings generation
- PostgreSQL vector storage
- Similarity search
š Developer Experience
- Consistent interfaces
- Streaming support
- Type-safe operations
š Quick Start
š¦ Installation
go get github.com/shaharia-lab/goai
Example
package main
import (
"github.com/shaharia-lab/goai"
"log"
"os"
)
func main() {
// Initialize LLM
client := goai.NewAnthropicClient(os.Getenv("ANTHROPIC_API_KEY"))
provider := goai.NewAnthropicLLMProvider(goai.AnthropicProviderConfig{
Client: client,
})
// Configure request
llm := goai.NewLLMRequest(goai.NewRequestConfig(
goai.WithMaxToken(200),
goai.WithTemperature(0.7),
), provider)
// Generate response
response, err := llm.Generate([]goai.LLMMessage{
{Role: goai.UserRole, Text: "Explain quantum computing"},
})
if err != nil {
panic(err)
}
log.Println(response)
}
š Documentation
Visit our documentation for detailed guides on:
- Getting Started
- LLM Integration
- Embedding Generation
- Vector Operations
- MCP (Model Context Protocol) Server in Go
- API Reference
š¤ Contributing
We welcome contributions! See our Contributing Guide for details.
š Security
Review our Security Policy for reporting vulnerabilities.
š License
MIT License - see LICENSE for details.
Built with ā¤ļø by Shaharia Lab and Contributors