twkeed-rag
1
license:apache-2.0
by
twkeed-sa
Embedding Model
OTHER
New
0 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
Unknown
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Code Examples
Installationbash
pip install torch sentence-transformers FlagEmbedding faiss-cpuInstallationpython
from twkeed_rag import TwkeedRAG, Document
# Initialize
rag = TwkeedRAG()
# Add Arabic documents
rag.add_documents([
Document(id="1", text="المملكة العربية السعودية هي أكبر دولة في شبه الجزيرة العربية"),
Document(id="2", text="الرياض هي عاصمة المملكة العربية السعودية"),
Document(id="3", text="مكة المكرمة هي أقدس مدينة في الإسلام"),
])
# Search
results = rag.search("ما هي عاصمة السعودية؟", top_k=3)
for r in results:
print(f"Score: {r.rerank_score:.4f} - {r.document.text}")Deploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.