package
15.4.29+incompatible
Repository: https://github.com/gravitational/teleport.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

EmbeddingHashMatches returns true if the hash of the embedding matches the given hash.
MarshalEmbedding marshals the ai.Embedding resource to binary ProtoBuf.
NewBatchReducer is a BatchReducer constructor.
NewClient creates a new client for OpenAI API.
NewClientFromConfig creates a new client for OpenAI API from config.
NewEmbeddingProcessor returns a new EmbeddingProcessor.
No description provided by the author
UnmarshalEmbedding unmarshals binary ProtoBuf into an ai.Embedding resource.

# Structs

BatchReducer is a helper that processes data in batches.
Chat represents a conversation between a user and an assistant with context memory.
Client is a client for OpenAI API.
Document is a embedding enriched with similarity score.
EmbeddingProcessor is responsible for processing nodes, generating embeddings and storing their embeddings in the backend.
EmbeddingProcessorConfig is the configuration for EmbeddingProcessor.
MockEmbedder returns embeddings based on the sha256 hash function.
SimpleRetriever is a simple implementation of embeddings retriever.

# Interfaces

Embeddings implements the minimal interface used by the Embedding processor.

# Type aliases

FilterFn is a function that filters out embeddings.