Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve pgvector docs #755

Merged
merged 1 commit into from
Apr 12, 2023
Merged

Improve pgvector docs #755

merged 1 commit into from
Apr 12, 2023

Conversation

ankane
Copy link
Contributor

@ankane ankane commented Apr 12, 2023

Hi, thanks for adding pgvector to the LangChain ecosystem!

The docs currently instruct users to run CREATE INDEX right after creating the table. However, this will lead to poor recall. I think it'd be better for users to use exact nearest neighbor search (for perfect recall) and only add an index when querying becomes slow (and the table has data).

More info: https://github.com/pgvector/pgvector#indexing

@vercel
Copy link

vercel bot commented Apr 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Apr 12, 2023 2:04am

@nfcampos
Copy link
Collaborator

Thank you! I was about to do this myself

@nfcampos nfcampos added the lgtm PRs that are ready to be merged as-is label Apr 12, 2023
@nfcampos nfcampos merged commit 8e4ff20 into langchain-ai:main Apr 12, 2023
@ankane
Copy link
Contributor Author

ankane commented Apr 12, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PRs that are ready to be merged as-is
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants