RAGpy
Usage
Create a vectorstore client (currently only Qdrant is supported). Set QDRANT_API_KEY environment variable first.
from ragpy.vectorstore import QdrantService
from ragpy.embeddings import OpenAIEmbeddingService
embedder = OpenAIEmbeddingService(api_key="your-openai-key")
qdrant = QdrantService("https://your-qdrant-server-url", embedder=embedder)
Create collection:
qdrant.create_collection('collection-name')
Upload chunks of data to a collection:
chunks = ['list of', 'text chunks']
qdrant.upsert('collection-name', chunks)
Query collection:
query_points = qdrant.search('collection-name', 'your query')
for point in query_points:
print(f'score: {point["score"]}')
print(f'text: {point["text"]}')
Metadata
Release files for ragpy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ragpy-0.1.0.tar.gz | 113.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ragpy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 117.6 kB
Release files / ragpy-0.1.0.tar.gz
| Download URL | ragpy-0.1.0.tar.gz |
|---|---|
| Size | 113.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1eb3fb57730361314ac7586e56bbab94ec1d90ab13f7be1efacd3d5c901e49d6
|
|
BLAKE2b-256 checksum How to use checksums |
8eae1eb93788dd017658297a580e659be15bb019d95aa6f74cb64878751e0ff3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.23
|
Release files / ragpy-0.1.0-py3-none-any.whl
| Download URL | ragpy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
425bfc8ab2f78efda2f250b49c42df8198e947c715e7e1ea648f7db4f1846d45
|
|
BLAKE2b-256 checksum How to use checksums |
b114a36a68f33bbcfa6ae90e4ab704a893d62b8382ad36012b9bf94e565c7e55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.23
|
Security for ragpy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.