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.1.tar.gz (43.2 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.1-py3-none-any.whl (53.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: labra_pgvectorstore-0.1.1.tar.gz
  • Upload date:
  • Size: 43.2 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.1.tar.gz
Algorithm Hash digest
SHA256 2547d8a6c60df59548836f70026cdaded0b4a5b9ba8efb2a05af1d38e63043ed
MD5 0bb6aeac865a0667cf4bb71abde10a9b
BLAKE2b-256 229698afd331128a9a2d63f61f30e63a16bc5c09a5400f0202a8e9f1c0eae14f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for labra_pgvectorstore-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04b4e000c029c9717eed2ab5b638aa10a81c39b9a719b72d50290089b3a89ccc
MD5 05ee4d7652441d31f15249e3828c0143
BLAKE2b-256 7bd20085a29922059c07a6153597078bfb890ed31823c03fa341cc23b0a7476e

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