Skip to content
Question about Supa...
 
Notifications
Clear all

Question about Supabase Vector Store

3 Posts
3 Users
0 Reactions
4 Views
Sumon
(@sumon)
Posts: 1
New Member
Topic starter
 

Could someone explain the underlying mechanism? Does it utilize the function calling feature of OpenAI/Gemini?

When I retrieve data from it as a knowledge base for an AI Agent, I'm setting the query option to the function name and providing the table name, but I'm not specifying the function parameters or return types anywhere. How will the AI Agent understand this?

Do I need to include the table schema in the system prompt?

And regarding inserting data into the Supabase vector store, how is the data mapping handled?

 
Posted : 27/05/2025 5:33 pm
Erick_Torres
(@erick_torres)
Posts: 9
Active Member
 

Does OpenAI/Gemini utilize function calling internally?

Possibly, if you're utilizing the callin.io AI Agent with semantic search capabilities or integration with LLMs. Many current RAG (Retrieval-Augmented Generation) workflows use:

  • Supabase Vector Store to store embeddings.
  • OpenAI function calling or similar to invoke functions like “searchdocuments” or “getcontext”.

However, this depends on the design of the AI Agent. If you're using the callin.io AI Agent with query: function, it might be relying on LLMs to generate functions based on the context.

How does the agent determine function parameters?

This implies that the AI Agent operates implicitly (leveraging LLM context) rather than declaratively, as seen in OpenAI function calling with a defined schema. Therefore, yes, you need to assist the LLM.

Should I include the schema in the system prompt?

Yes, it is advisable. If you do not explicitly define the types and columns in the function definition or metadata, you must provide:

  • Table name
  • Relevant columns (names + data type)
  • Semantic context, if applicable.

How is data mapping handled during insertion?

Within the context of callin.io + Supabase Vector Store: Text is converted into embeddings (using OpenAI, etc.).

The resulting vector embedding, along with its metadata (original text, IDs, etc.), is inserted as a row into a Supabase table. callin.io allows you to map which fields are saved via the node fields.

You must ensure that the table possesses a vector column type and that the node is configured with the appropriate embedding model.

 
Posted : 27/05/2025 7:52 pm
system
(@system)
Posts: 332
Reputable Member
 

This discussion was automatically closed 7 days following the last response. New replies are no longer permitted.

 
Posted : 05/06/2025 2:43 pm
Share: