Replies: 1 comment
-
Hey @shildesai! 👋 I'm here to help you with any bugs, questions, or contributions you have. Let's squash those bugs together! The error you're encountering, "column reference 'id' is ambiguous," typically occurs when there are multiple tables involved in a query, and the column name "id" exists in more than one of those tables. To resolve this ambiguity, you need to specify which table the "id" column belongs to by using a table alias or the full table name in your SQL query. Here's a general approach to fix this issue:
If you're using a query builder or ORM, check its documentation for how to specify table aliases or fully qualify column names to avoid such ambiguities. This should help in resolving the error you're facing with the Supabase vector store integration. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Beta Was this translation helpful? Give feedback.
-
Hi Friends,
I am trying to use OpenAI embedding and Supabase as vector store in the "Adding vector RAG to the basic prompting flow" example. I am getting following error. please can someone help?
APIError: {'code': '42702', 'details': 'It could refer to either a PL/pgSQL
variable or a table column.', 'hint': None, 'message': 'column reference "id"
is ambiguous'}
I can see the data is getting added to the supabase but looks like error while returning?
here is the full error.
File "", line 71, in search_documents
File
"/Users/shildesai/Documents/startapps/LangFlow/.venv/lib/python3.11/site-packa
ges/langchain_community/vectorstores/supabase.py", line 184, in
similarity_search
return self.similarity_search_by_vector(vector, k=k, filter=filter,
**kwargs)
| | | | | ->
{}
| | | | -> None
| | | -> 4
| | -> [-0.00740993395447731,
0.01829112321138382, -0.03440818190574646, -0.02291463129222393,
-0.023276975378394127, 0.029002008959...
| -> <function SupabaseVectorStore.similarity_search_by_vector
at 0x30f04bec0>
-> <langchain_community.vectorstores.supabase.SupabaseVectorStore
object at 0x32894f590>
File
"/Users/shildesai/Documents/startapps/LangFlow/.venv/lib/python3.11/site-packa
ges/langchain_community/vectorstores/supabase.py", line 193, in
similarity_search_by_vector
result = self.similarity_search_by_vector_with_relevance_scores(
| -> <function
SupabaseVectorStore.similarity_search_by_vector_with_relevance_scores at
0x30f24b060>
-> <langchain_community.vectorstores.supabase.SupabaseVectorStore
object at 0x32894f590>
File
"/Users/shildesai/Documents/startapps/LangFlow/.venv/lib/python3.11/site-packa
ges/langchain_community/vectorstores/supabase.py", line 239, in
similarity_search_by_vector_with_relevance_scores
res = query_builder.execute()
| -> <function SyncSingleRequestBuilder.execute at
0x30fa5bb00>
-> <postgrest._sync.request_builder.SyncRPCFilterRequestBuilder
object at 0x32c671790>
File
"/Users/shildesai/Documents/startapps/LangFlow/.venv/lib/python3.11/site-packa
ges/postgrest/_sync/request_builder.py", line 127, in execute
raise APIError(r.json())
| | -> <function Response.json at 0x105ad5ee0>
| -> <Response [400 Bad Request]>
-> <class 'postgrest.exceptions.APIError'>
Beta Was this translation helpful? Give feedback.
All reactions