toradb.integrations.
Example
Requirements
Install ToraDB with Install. LangChain itself is optional; import only what your app needs. For a full walkthrough, runpython examples/full_example.py (section 16).Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
ToraDBVectorStore adapter
toradb.integrations.
import toradb
from toradb.integrations import ToraDBVectorStore
db = toradb.local("./my_db")
articles = db.table("articles")
store = ToraDBVectorStore.from_table(articles)
store.add_texts([
"Nikola Tesla envisioned worldwide wireless power distribution",
])
hits = store.similarity_search("wireless power Tesla", k=2)
print(hits)
python examples/full_example.py (section 16).