Simple vector database operations with Qdrant
Project description
Vector Search
A simple Python package for vector database operations using Qdrant.
Features
- Initialize connection with Qdrant vector database
- Parse, chunk, and process text into vector embeddings
- Search for relevant text chunks based on semantic similarity
Installation
pip install vector-search
Usage
Initialize the vector database
vector-search init --collection my_documents
Process documents
Create a JSON file (e.g., documents.json) with your articles:
{
"Article 1": "This is the full text of article 1...",
"Article 2": "This is the full text of article 2..."
}
Then process them:
vector-search process --input documents.json --collection my_documents
Search for relevant chunks
vector-search search --query "your search query here" --collection my_documents
Python API
from vector_search import VectorDB
# Initialize
db = VectorDB(collection_name="my_documents")
# Add documents
documents = {
"Article 1": "This is the content of article 1...",
"Article 2": "This is the content of article 2..."
}
db.add_documents(documents)
# Search
results = db.search("your query here", k=5)
print(results)
License
MIT
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
ragger_simple-0.1.0.tar.gz
(5.2 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 ragger_simple-0.1.0.tar.gz.
File metadata
- Download URL: ragger_simple-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34ca2dc25a53f369b696bb8e307f3e28c3b7cb41a15fd98f10d80e83c206263d
|
|
| MD5 |
7e90896afeb8a4fe6923568259f2fdb2
|
|
| BLAKE2b-256 |
cda4a2e2c89905ffb365bd1371239a9911782d37ef120dc8e6b09300cd2d0c82
|
File details
Details for the file ragger_simple-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ragger_simple-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5143b8945385cc2d887daf8c07b3b048f0c7efd24e1e6c61bc0c73bbc0876645
|
|
| MD5 |
e800fb0adce77ba5eb233db3810bc5a5
|
|
| BLAKE2b-256 |
13c8304b2a4ecbb5acdc16b8789014042c04fa30641955045fa656fb55b7a907
|