Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEmbeddings ¶
func ParseEmbeddings ¶
Types ¶
type DistanceFunc ¶
type RelatedEmbedding ¶
func RankEmbeddingsByRelatedness ¶
func RankEmbeddingsByRelatedness( llm openai.Client, kbEmbeddings []openai.Embedding, queryEmbedding openai.Embedding, distanceFunc DistanceFunc, maxResults int, ctx context.Context) []RelatedEmbedding
Click to show internal directories.
Click to hide internal directories.