Use different vector table in PgVectorStore #569
Replies: 2 comments
-
Hi, Here's how I managed to use a custom table within my custom schema:
Using Hibernate for Custom Entity To work with this custom table using Hibernate, you can use the hibernate-vector dependency to map your custom entity. Here’s how you can configure it:
This setup allows you to use your custom table with PgVectorStore and Hibernate. For more details on using and configuring PgVectorStore, refer to [pgvector-java](the https://github.com/pgvector/pgvector-java) Feel free to reach out if you have any questions or need further assistance! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hi guys!
I'm currently developing a RAG project using Spring AI framework. To work with vector database I'm using the following depency (PGVector Store):
What I'm struggling is how to use a different table name in my project. As default, the PgVectorStore class is set to work with a specific table (vector_store):
public static final String VECTOR_TABLE_NAME = "vector_store";
As I already have a table populated with all my embeddings, I want to update this in order to use this already setup table (which is not called "vector_store"). Am I missing something or there is no way to do this?
The Spring AI version I've been working is 0.8.1.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions