spring-projects / spring-projects/spring-ai

vectorstore pgvector support specify datasource host

Open
#1,376 5 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

pgvector vector store
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
1d 7h
Merged PRs (30d)
6

Description

pgvector support specify url\host such as
vectorstore: chroma: initialize-schema: true client: host: ${CHROMA_HOST:http://192.168.18.64} port: ${CHROMA_PORT:8000}

In my scenario, MySQL is used for business-related and pgvector is used for vectors, but PgVectorStoreAutoConfiguration directly use JdbcTemplate, hoping to be configured separately like other Chroma instead of' spring.datasource'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading PgVectorStoreAutoConfiguration and how its JdbcTemplate is obtained, then compare that with the Chroma client configuration shown in the issue. Done means pgvector can use a separately configured datasource or connection while the application's spring.datasource remains available for MySQL business data.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, postgresql, spring
Domain
backend, databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.