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.2.tar.gz (43.8 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.2-py3-none-any.whl (53.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: labra_pgvectorstore-0.1.2.tar.gz
  • Upload date:
  • Size: 43.8 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.2.tar.gz
Algorithm Hash digest
SHA256 0bc70c8768604be1f33a48eb13d8516487e59f118ca0a296b96fa3e92f8f73fd
MD5 9c19597b1e29cad3f559daab96358d73
BLAKE2b-256 9fddfffddcdc036309c3b038c35f313b5e18a3181eea536657a6ffe89e67eb1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for labra_pgvectorstore-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 124f355efa093acd0eb9607eaaf40b7bae0284d43e7732fcdb31b4a2da2af692
MD5 963d988648c000f97af02aaaa187fe48
BLAKE2b-256 60755ab395f44f84532ef0ea7e8ac53463066bab2d7c676ec8dcf60ad763710d

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