Skip to main content

LlamaIndex adapter for TruthStack supplement safety API. Check drug interactions, get evidence, search compounds.

Project description

truthstack-llamaindex

LlamaIndex adapter for TruthStack supplement safety API.

Install

pip install truthstack-llamaindex

Quick Start

from truthstack_llamaindex import get_tools
from llama_index.core.agent import ReActAgent
from llama_index.llms.openai import OpenAI

tools = get_tools(api_key="your-key")
agent = ReActAgent.from_tools(tools, llm=OpenAI(model="gpt-4"))

response = agent.chat("What's the evidence for CoQ10?")

Tools Included

Tool Description
truthstack_check_interactions Check supplement + drug interactions
truthstack_get_evidence Evidence balance + citations
truthstack_search_supplements Fuzzy compound search
truthstack_safety_signals FDA CAERS/FAERS signals
truthstack_drug_profile Drug CYP450 + botanical interactions

Also available

pip install truthstack                    # Core client
pip install truthstack-langchain          # LangChain adapter
pip install truthstack-crewai             # CrewAI adapter

API Key

Free key (2,000 calls/month): truthstack.co/developers

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

truthstack_llamaindex-1.0.0.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

truthstack_llamaindex-1.0.0-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

Details for the file truthstack_llamaindex-1.0.0.tar.gz.

File metadata

  • Download URL: truthstack_llamaindex-1.0.0.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for truthstack_llamaindex-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f693b2237e069fa27efa5192c6eb4f8dfbcc88f9ed6dd5fb08374f6742722a96
MD5 b7737a65db1a0c8490717027f84a9d60
BLAKE2b-256 f7963d969a65c32eece4b27613c2a9fce9b9f7a12658eebaaafdffda4d03c08c

See more details on using hashes here.

File details

Details for the file truthstack_llamaindex-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for truthstack_llamaindex-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 876dc93c1fb834f6c91e46c53e69cb2c81e5ed2872719ab17c474483522588fe
MD5 ec146d2dbf555b55a25ddb8056e0d07c
BLAKE2b-256 9e793f150f26e1951f7d6ffefb84061f6147980bb3e69815abc6e811a94eed20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page