new_in_town
08/20/2025, 10:32 AMcontent
is a screen-long text about everything and anything. tags
is about 3 to 20 words, something like "Mozart, Bach" or "Deep Purple, Rainbow". Only music genres extracted from content.
Imagine, I have embedding_content
, embedding_tags
for both fields - I can have more than one embedding per document, right?
Now, for a document X
I want to find documents with similar music genres (NOT documents having similar fluff in content)
can I do something like this?
curl '<http://localhost:8108/multi_search>' \
-X POST \
-H "X-TYPESENSE-API-KEY: ${TYPESENSE_API_KEY}" \
-d '{
"searches": [
{
"collection": "docs",
"q": "*",
"vector_query": "embedding_tags:([], id: X)"
}
]
}'
Fanis Tharropoulos
08/20/2025, 11:31 AMnew_in_town
08/20/2025, 11:53 AM