Created
December 11, 2023 10:15
-
-
Save nyimbi/794d0c5ae2382073adc7a277843452dc to your computer and use it in GitHub Desktop.
PGVectorStore uning LlamaIndex
This file contains hidden or 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
| # import logging | |
| # import sys | |
| # Uncomment to see debug logs | |
| # logging.basicConfig(stream=sys.stdout, level=logging.DEBUG) | |
| # logging.getLogger().addHandler(logging.StreamHandler(stream=sys.stdout)) | |
| from llama_index import SimpleDirectoryReader, StorageContext | |
| from llama_index.indices.vector_store import VectorStoreIndex | |
| from llama_index.vector_stores import PGVectorStore | |
| import textwrap | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment