langchain/docs/extras/modules
Raouf Chebri 6fc24743b7
Add pg_hnsw vectorstore integration (#6893)
Hi @rlancemartin, @eyurtsev!

- Description: Adding HNSW extension support for Postgres. Similar to
pgvector vectorstore, with 3 differences
      1. it uses HNSW extension for exact and ANN searches, 
      2. Vectors are of type array of real
      3. Only supports L2
      
- Dependencies: [HNSW](https://github.com/knizhnik/hnsw) extension for
Postgres
  
  - Example:
  ```python
    db = HNSWVectoreStore.from_documents(
      embedding=embeddings,
      documents=docs,
      collection_name=collection_name,
      connection_string=connection_string
  )
  
  query = "What did the president say about Ketanji Brown Jackson"
docs_with_score: List[Tuple[Document, float]] =
db.similarity_search_with_score(query)
  ```

The example notebook is in the PR too.
2023-07-05 08:10:10 -07:00
..
agents Improve Bing Search example (#7128) 2023-07-04 09:58:03 -06:00
callbacks Remove Promptlayer Notebook (#6996) 2023-06-30 14:30:24 -07:00
chains Add HugeGraphQAChain to support gremlin generating chain (#7132) 2023-07-04 10:21:21 -06:00
data_connection Add pg_hnsw vectorstore integration (#6893) 2023-07-05 08:10:10 -07:00
memory Align cassio versions between examples for Cassandra integration (#7099) 2023-07-04 04:21:48 -06:00
model_io Fix GPT4All bug w/ "n_ctx" param (#7093) 2023-07-04 08:53:52 -07:00
paul_graham_essay.txt
state_of_the_union.txt