Define a collection schema
Add documents
Query the collection with semantic search
semantic_index()
to a text field in the collection schema:
semantic_index()
, see Vector Search.semantic_similarity()
function:
semantic_similarity()
function computes the similarity between the query "classic American novel"
and the text value stored in the title
field for each document.semantic_index()
function..rerank()
call uses a reranking model to improve relevance of the results.
For more information, see our Reranking guide.