Skip to main content

A Python library for managing vector stores.

Project description

labra_pgvectorstore

License: MIT

labra_pgvectorstore is a Python library and GUI application for managing vector stores in PostgreSQL databases, built with LangChain. It empowers users to upload, organize, search, and manage PDF or .txt documents as collections, query them with an integrated OpenAI chat completion bot, and manipulate documents or collections flexibly—all through a simple web application.

FEATURES Upload PDFs & Text Files: Easily add data from PDFs or .txt files into your vector store.

Collection Management: Group documents into custom-named collections (e.g., by topic).

OpenAI-Powered Search: Query your stored documents with natural language questions and filter search scope by selecting collections.

Flexible Deletion: Delete individual files or clear out entire collections (if empty), all from an intuitive interface.

Utility Functions: Use library functions directly in your Python code (see internal Labra Teams documentation for details).

PREREQUISITES Before installing labra_pgvectorstore, ensure you have:

1. Python: Version 3.8 or higher.
2. PostgreSQL: Installed on your local machine.
3. pgvector Extension: Installed on your PostgreSQL database. (PGVector Installation Guide:     https://github.com/pgvector/pgvector)

INSTALLATION Install the package and Initialize your environment variables: In the terminal type: 1. pip install labra_pgvectorstore 2. labrarag-env-init --path "" (generates a .env template without overwriting any existing one, unless forced): To force overwrite an existing .env file, add the --force flag: labrarag-env-init --path "" --force For more help: labrarag-env-init --help

CONFIGURE YOUR .env FILE: Fill in your custom values as required for database connection, OpenAI keys, etc.

Launch the GUI: Navigate to the directory containing static/app.py and run: python static/app.py - This will start the web application for interacting with your vector store.

USAGE Document Management: Upload: Add PDF or .txt files to collections. Group: Organize files by topics or any category, creating and selecting collections. Search: Use the OpenAI chatbot to query your database. You can select one or more collections to target for your questions. Delete: Select a collection by dropdown. View all files in that collection. Delete individual files, or delete the collection (only possible if empty). Library Functions Programmatic utility functions for developers are available.

Documentation: See the internal Labra Teams channel for full documentation. Support & Documentation Function Documentation: Internal Labra Teams channel.

Issues & Bugs: - To fix: If you accidentally add duplicate files to a collection, deleting one will delete all.

Acknowledgements -Built with LangChain -Utilizes PostgreSQL and pgvector -OpenAI chat completion integration

Happy building! If you have any questions or need help, consult your internal Labra support resources.

This project is intended for internal use. External dissemination or open-source release may require review.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

labra_pgvectorstore-0.1.3.tar.gz (43.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

labra_pgvectorstore-0.1.3-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

Details for the file labra_pgvectorstore-0.1.3.tar.gz.

File metadata

  • Download URL: labra_pgvectorstore-0.1.3.tar.gz
  • Upload date:
  • Size: 43.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for labra_pgvectorstore-0.1.3.tar.gz
Algorithm Hash digest
SHA256 6993476ee1a66a235484237b168d797caf95078084424caf8bf867226678c55c
MD5 8d907622d8d0708a90d6ac2aed870c9b
BLAKE2b-256 1feeb183d0caffdb72e1d99e2759a63b5f69b743a86a1ad56c563b6e74fed102

See more details on using hashes here.

File details

Details for the file labra_pgvectorstore-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for labra_pgvectorstore-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bdcca6fc2ceaa770c338edb944ed369da4963a3ba617de759f4486fa926fc30b
MD5 94a2f343eaadd3165574a7958a2dc1c3
BLAKE2b-256 a5d7bb239c86d8c93140ebb5d6e7cbba0652b1f5faee93a4ae4925360536c949

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page