Is it possible to implement a hybrid search (semantic + full-text) using N8n and Supabase? :( #29712
Unanswered
Felipe92299229
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone, I'm trying to build a RAG (Retrieval-Augmented Generation) agent using N8n + Vector Store in Supabase, but I've hit a problem I can't solve. I want to know if it's possible to implement hybrid search (semantic + full-text) using only N8n and Supabase.
I followed the instructions from this link: Supabase with Langchain. The example there works well for semantic search, but I also need to combine it with full-text search to achieve more precise results.
What I've tried:
I made some modifications to the original code using GPT to add an fts (full-text search) column and create a hybrid function that combines similarity search with textual relevance search. Unfortunately, I haven't been successful.
I searched for solutions on the web, but everything I've found so far hasn't solved the problem.
My current scenario:
I'm using a table in Supabase to store my documents, with a column for embeddings and metadata.
The search accuracy, even with only 20 chunks of 1000 words, is not satisfactory. For example, when searching for terms like "Chinese pastries" or "chocolate chips," the results are not precise enough.
So, my question is: is it possible to create a hybrid search agent (combining semantic similarity and full-text search) using only N8n and Supabase? If so, does anyone have any example or tips on how to implement this more effectively?
Any help would be greatly appreciated, especially on how to improve the accuracy of the vector store using a hybrid approach. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions