A Python library for managing vector stores.
Project description
labra_pgvectorstore
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file labra_pgvectorstore-0.1.0.tar.gz.
File metadata
- Download URL: labra_pgvectorstore-0.1.0.tar.gz
- Upload date:
- Size: 43.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1119365c43b5256ee1ed1f80b71daf415abdf6431f39e6f0627498a087350d73
|
|
| MD5 |
7d2204d388616382cc377553bdfeff01
|
|
| BLAKE2b-256 |
d8d0d1e7f87329ed3f4a26ec87d3c76ffc4cf8c46cb358b1504e0289c338da92
|
File details
Details for the file labra_pgvectorstore-0.1.0-py3-none-any.whl.
File metadata
- Download URL: labra_pgvectorstore-0.1.0-py3-none-any.whl
- Upload date:
- Size: 53.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
705dd35278d2f763375049511aa0d9521fb5a8930dd5e3bc699bb72e3ac555af
|
|
| MD5 |
123b61f7af7e777ab98334539dcec783
|
|
| BLAKE2b-256 |
72e76f4e2388dfa699c43d0c148309af3d8992872ffec77a5a79732dcceb2efb
|