Semantic Search Weighting in Typesense 0.25
TLDR Gustavo suggested improvements for semantic search in Typesense. Jason confirmed it's under consideration. Gustavo then found the answer in query_by_weights
, though it currently doesn't affect the embedding field.
1
1
Aug 19, 2023 (3 months ago)
Gustavo
08:47 PMq:
${userInput} ${context}`, the result goes too much towards the context and the user input doesn't have enough weight. I need some way to control the exact weight of each term. Perhaps something like
vec:([{ q: "${userInput}", weight: 0.7 }, { q: "${context}", weight: 0.3 }])`.Aug 22, 2023 (3 months ago)
Jason
03:24 AM1
Aug 30, 2023 (3 months ago)
Gustavo
09:35 PMquery_by_weights
), and that's much simpler than what I suggested. 😅Jason
09:58 PMGustavo
09:59 PM1
Typesense
Indexed 3011 threads (79% resolved)
Similar Threads
Issues with Semantic Search in OpenAI Embeddings
Semyon was having issues while creating a schema for semantic search with OpenAI embeddings. Jason gave multiple suggestions for troubleshooting but none of them worked. The error was narrowed down to possibly being related to Semyon's specific OpenAI account or the OpenAI API key. The thread ended with Jason suggesting Semyon to check billing and make a direct API call to OpenAI.
Implementing Semantic Search with Typesense
Erik sought advice for semantic search implementation in Typesense and raised issues around slow document import and excessive latency. Upon implementing advice from Kishore Nallan to try different models, Erik reported faster times, ultimately deciding to rate-limit imports.
Collection-Level Scoring in Typesense Multi-Search
Mile questioned the possibility of collection-level scoring in Typesense. Jason advised adjusting scores client-side, and requested Mile to create a GitHub issue to assess community interest.