pub enum SemanticRepresentation {
Symmetric,
Document,
Query,
}
Expand description
Allows you to choose a semantic representation fitting for your usecase.
Variants§
Symmetric
Useful for comparing prompts to each other, in use cases such as clustering, classification,
similarity, etc. Symmetric
embeddings are intended to be compared with other Symmetric
embeddings.
Document
Document
and Query
are used together in use cases such as search where you want to
compare shorter queries against larger documents. Document
embeddings are optimized for
larger pieces of text to compare queries against.
Query
Document
and Query
are used together in use cases such as search where you want to
compare shorter queries against larger documents. Query
embeddings are optimized for
shorter texts, such as questions or keywords.