Skip to content

Instantly share code, notes, and snippets.

@nyimbi
Created December 11, 2023 10:15
Show Gist options
  • Save nyimbi/794d0c5ae2382073adc7a277843452dc to your computer and use it in GitHub Desktop.
Save nyimbi/794d0c5ae2382073adc7a277843452dc to your computer and use it in GitHub Desktop.
PGVectorStore uning LlamaIndex
# 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