forked from langchain-ai/langchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* master: (68 commits) hotfix (langchain-ai#1742) Harrison/move docs (langchain-ai#1741) move docs (langchain-ai#1740) bump version to 114 (langchain-ai#1739) Harrison/latex splitter (langchain-ai#1738) Harrison/blackboard loader (langchain-ai#1737) docs: add docs link to agent toolkits (langchain-ai#1735) fix: agent json parser fails with text in suffix (langchain-ai#1734) Harrison/official method (langchain-ai#1728) Sagemaker Endpoint LLM (langchain-ai#1686) adding new agent types in comments (langchain-ai#1711) (OpenAI) Add model_name to LLMResult.llm_output (langchain-ai#1713) Fix all the bug in init Tool in docs (langchain-ai#1725) Bump duckdb-engine to 0.7.0 (langchain-ai#1726) Add HTML document_loader that includes page title metadata (langchain-ai#1720) fix async in agent (langchain-ai#1723) pydantic/json parsing (langchain-ai#1722) Loosen PyYAML dependency (langchain-ai#1698) Adding ability to `return_pl_id` to all PromptLayer Models in LangChain (langchain-ai#1699) fallback to {} for None metadata from Chroma (langchain-ai#1714) ...
- Loading branch information
Showing
153 changed files
with
8,545 additions
and
505 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,3 +137,6 @@ dmypy.json | |
|
||
# macOS display setting files | ||
.DS_Store | ||
|
||
# asdf tool versions | ||
.tool-versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# PGVector | ||
|
||
This page covers how to use the Postgres [PGVector](https://github.com/pgvector/pgvector) ecosystem within LangChain | ||
It is broken into two parts: installation and setup, and then references to specific PGVector wrappers. | ||
|
||
## Installation | ||
- Install the Python package with `pip install pgvector` | ||
|
||
|
||
## Setup | ||
1. The first step is to create a database with the `pgvector` extension installed. | ||
|
||
Follow the steps at [PGVector Installation Steps](https://github.com/pgvector/pgvector#installation) to install the database and the extension. The docker image is the easiest way to get started. | ||
|
||
## Wrappers | ||
|
||
### VectorStore | ||
|
||
There exists a wrapper around Postgres vector databases, allowing you to use it as a vectorstore, | ||
whether for semantic search or example selection. | ||
|
||
To import this vectorstore: | ||
```python | ||
from langchain.vectorstores.pgvector import PGVector | ||
``` | ||
|
||
### Usage | ||
|
||
For a more detailed walkthrough of the PGVector Wrapper, see [this notebook](../modules/indexes/vectorstore_examples/pgvector.ipynb) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.