Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

feat: postgres index #146

Merged
merged 2 commits into from
Oct 18, 2024
Merged

feat: postgres index #146

merged 2 commits into from
Oct 18, 2024

Conversation

iwilltry42
Copy link
Collaborator

@iwilltry42 iwilltry42 commented Oct 18, 2024

Use via env export KNOW_INDEX_DSN="postgres://knowledge:knowledge@localhost:5432/knowledge?sslmode=disable"

E.g. to have a full postgres driven setup:

  1. Spin up pgvector, e.g. using the provider docker-compose file: docker compose up (in the knowledge repo root)
  2. Setup to use pgvector for Vector Store: export KNOW_VECTOR_DSN="pgvector://knowledge:knowledge@localhost:5432/knowledge?sslmode=disable"
  3. Setup to use the exact same postgres instance for our index: export KNOW_INDEX_DSN="postgres://knowledge:knowledge@localhost:5432/knowledge?sslmode=disable"`
  4. Use knowledge normally

@iwilltry42 iwilltry42 changed the title add: postgres index feat: postgres index Oct 18, 2024
@iwilltry42 iwilltry42 force-pushed the change/postgres-index branch from 97a1c93 to 5ad66db Compare October 18, 2024 13:24
@iwilltry42 iwilltry42 merged commit da40858 into main Oct 18, 2024
1 check passed
@iwilltry42 iwilltry42 deleted the change/postgres-index branch October 18, 2024 13:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant