package
0.0.1
Repository: https://github.com/stackloklabs/gorag.git
Documentation: pkg.go.dev

# Functions

NewOllamaBackend creates a new OllamaBackend instance.
NewOpenAIBackend creates and returns a new OpenAIBackend instance with a custom timeout.
NewPrompt creates and returns a new Prompt.

# Structs

Message represents a single role-based message in the conversation.
OllamaBackend represents a backend for interacting with the Ollama API.
OllamaEmbeddingResponse represents the response from the Ollama API for embeddings.
OpenAIBackend represents a backend for interacting with the OpenAI API.
OpenAIEmbeddingResponse represents the structure of the response received from the OpenAI API for an embedding request.
OpenAIResponse represents the structure of the response received from the OpenAI API for a chat completion request.
Parameters defines generation settings for LLM completions.
Prompt represents a structured prompt with role-based messages and parameters.
Response represents the structure of the response received from the Ollama API.

# Interfaces

Backend defines the interface for interacting with various LLM backends.