Downloads · 30 days
7
27% of all-time downloads
Viveka1zha/neuro-symbolic-search
neuro-symbolic-search is a machine learning model from Viveka1zha. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
A hybrid search system combining neural embeddings with symbolic reasoning.
Downloads · 30 days
7
27% of all-time downloads
All-time downloads
26
Public
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py7.8 KB · 69%
From the Hugging Face model README
A hybrid search system combining neural embeddings with symbolic reasoning.
from model import SimpleNeuroSymbolicSearch
# Initialize
search = SimpleNeuroSymbolicSearch()
# Index documents
documents = ["Document 1", "Document 2", "Document 3"]
metadata = [
{'topic': 'ai', 'level': 'beginner'},
{'topic': 'ml', 'level': 'advanced'},
{'topic': 'ai', 'level': 'intermediate'}
]
search.index_documents(documents, metadata)
# Search with filters
results = search.search("artificial intelligence topic:ai", top_k=5)
for r in results:
print(f"{r['rank']}. {r['document']} (score: {r['score']:.3f})")
machine learningmachine learning topic:ml level:beginnerdata science topic:ml AND level:advancedtorch>=2.0.0
sentence-transformers>=2.2.0
transformers>=4.30.0
@misc{neuro-symbolic-search-2025,
title={Simple Neuro-Symbolic Search},
author={Your Name},
year={2025},
url={https://huggingface.co/YOUR_USERNAME/neuro-symbolic-search}
}