Documentation ¶ Index ¶ type OpenAIConfig type RAG func New(filename string, config *OpenAIConfig) (*RAG, error) func (r *RAG) AddDocument(id string, document string) error func (r *RAG) Ask(query string) (string, error) func (r *RAG) Search(query string) ([]chromem.Result, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type OpenAIConfig ¶ type OpenAIConfig struct { EmbedModel string Endpoint string LLMModel string Token string } type RAG ¶ type RAG struct { // contains filtered or unexported fields } func New ¶ func New(filename string, config *OpenAIConfig) (*RAG, error) func (*RAG) AddDocument ¶ func (r *RAG) AddDocument(id string, document string) error func (*RAG) Ask ¶ func (r *RAG) Ask(query string) (string, error) func (*RAG) Search ¶ func (r *RAG) Search(query string) ([]chromem.Result, error) Source Files ¶ View all Source files rag.go Click to show internal directories. Click to hide internal directories.