Skip to main content

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/*

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)

Source distribution for PineconeRag 0.1.3
File Size Uploaded
pineconerag-0.1.3.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PineconeRag 0.1.3
File Interpreter ABI Platform
pineconerag-0.1.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page