A RAG-based company information retrieval system
Project description
I'll update the README.md to better reflect your project's current state and functionality. Here's an improved version:
# StartGarlic
A RAG-based contextual advertisement system that provides intelligent ad matching based on natural language queries.
## Installation
```bash
pip install startgarlic
Quick Start
from startgarlic import Garlic
# Initialize the system with your API key
api_key = "your_api_key_here"
garlic = Garlic(api_key)
# Find a relevant advertisement based on a query
ad_data = garlic.find_advertisement("I am interested in quantum computing in finance")
print(ad_data)
Features
- Contextual ad matching using RAG (Retrieval-Augmented Generation)
- Semantic search using sentence transformers
- Real-time bidding and auction system
- User context awareness
- Analytics and performance tracking
- Easy API integration
API Usage
Match Endpoint
import requests
response = requests.post(
"http://localhost:8001/api/match",
json={
"query": "I am interested in quantum computing in finance",
"user_id": "optional_user_id",
"context": {}
},
headers={
"Authorization": "Bearer your_api_key_here"
}
)
print(response.json())
Response Format
{
"company": "Example Company",
"product_name": "AI Assistant Pro",
"product_url": "https://example.com/products/ai-assistant",
"tracking_url": "https://example.com/track/ai-assistant?ref=chat"
}
Requirements
- Python >= 3.7
- FastAPI >= 0.68.0
- pandas >= 1.3.0
- sentence-transformers >= 2.0.0
- numpy >= 1.19.0
- supabase >= 0.0.1
Authors
- Bogdan Ciolac (bogdan@startgarlic.com)
- May Elshater (may@startgarlic.com)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
startgarlic-0.1.27.tar.gz
(19.1 kB
view details)
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 startgarlic-0.1.27.tar.gz.
File metadata
- Download URL: startgarlic-0.1.27.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec9b4a5b58ba1e45ebd056987ea18aa2e35c92d65f78899aaf674514d5e7b391
|
|
| MD5 |
427640b659f288dbc35e9513135be609
|
|
| BLAKE2b-256 |
c7369f8afd1b7d2e52268e5e5959325afe93d7afc2e51762bd9f8f56eb1f89a7
|
File details
Details for the file startgarlic-0.1.27-py3-none-any.whl.
File metadata
- Download URL: startgarlic-0.1.27-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fdfca8804ecbec227b21ebe5abe4cf6ec2eacae8b57c0f81246819a7b784c640
|
|
| MD5 |
b7e7680663aceec3ecba354b9aae6d14
|
|
| BLAKE2b-256 |
371b6aac0bf5454cd3191565242389cfcc5fa0a2329834c144ead5bb568e14cf
|