Pinecone RAG
A Python package for working with Pinecone in RAG (Retrieval-Augmented Generation) applications.
Installation
pip install pinecone-rag
Usage
from PineconeRag import PineconeRAG
# Initialize the RAG client
rag = PineconeRAG(
api_key="your-api-key", # or set PINECONE_API_KEY env var
index_name="rag-768" # optional, defaults to "rag-768"
)
# Define a callback function (optional)
def process_match(match):
print(f"Found match with score: {match['score']}")
print(f"Text: {match['metadata']['original_text']}")
# Query Pinecone
results = rag.query(
namespace="your-namespace",
text="your query text",
top_k=3,
include_metadata=True, # optional, defaults to True
callback=process_match, # optional callback
debug=True # optional debug mode
)
Publishing to PyPI
python3 -m pip install --upgrade build
python3 -m build
python3 -m twine upload --repository pypi dist/*
Metadata
Release files for PineconeRag 0.1.3
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 | Actions |
|---|---|---|---|---|
| pineconerag-0.1.3.tar.gz | 1.9 kB | Without provenance | Details for pineconerag-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pineconerag-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pineconerag-0.1.3-py3-none-any.whl |
Total release size: 3.7 kB
Release files / pineconerag-0.1.3.tar.gz
| Download URL | pineconerag-0.1.3.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a6fa9b4f338f8ae7e8b5ace225ea09c95aea5c485fa08dc518391b742cfbf36
|
|
BLAKE2b-256 checksum How to use checksums |
f42a7439a8e9a776f26c143949cc215a671241e1a14be1a7ec1af88257d59e2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Release files / pineconerag-0.1.3-py3-none-any.whl
| Download URL | pineconerag-0.1.3-py3-none-any.whl |
|---|---|
| Size | 1.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3060431f04a67160b3271a273be715445b58bbf1f0c706d569c4709a7e38befb
|
|
BLAKE2b-256 checksum How to use checksums |
091d3f26a99b898c1c768c821f4b6766ee51653f19897655653c8332d43ae572
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.10
|
Security for PineconeRag 0.1.3
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.