Skip to main content

llama-index-tools-deepinquiry

LlamaIndex tool spec for DeepInquiry: a library of short factual claims, each returned with its sources, a verification tier (gold, silver, bronze), a source-difference score and a signed CiteSig attestation.

Install

pip install llama-index-tools-deepinquiry

Get a free API key (500 requests a month, no card) at https://www.deepinquiry.ai/signup and set it:

export DEEPINQUIRY_API_KEY="di_live_..."

Use

from llama_index.tools.deepinquiry import DeepInquiryToolSpec

spec = DeepInquiryToolSpec()          # reads DEEPINQUIRY_API_KEY
tools = spec.to_tool_list()           # search_facts, get_fact, random_fact, search_documents

print(spec.search_facts("how many hearts does an octopus have", limit=2))

Give tools to any LlamaIndex agent. search_facts, get_fact and random_fact return plain text with the sources and a link to cite. search_documents returns LlamaIndex Document objects, so facts can be indexed or used in a retrieval step.

Try the API first

There is a live, keyless demo on https://www.deepinquiry.ai/api that shows the exact response.

Terms

The code in this package is MIT licensed. Facts returned by the API have their own terms: the free tier requires attribution to DeepInquiry (the links in each result serve for that) and paid plans allow commercial use. See https://www.deepinquiry.ai/terms and https://www.deepinquiry.ai/data-license.

Published by Machine Accountability Corporation.

Metadata

Release files for llama-index-tools-deepinquiry 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llama-index-tools-deepinquiry 0.1.0
File Size Uploaded Provenance
llama_index_tools_deepinquiry-0.1.0.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-deepinquiry 0.1.0
File Interpreter ABI Platform
llama_index_tools_deepinquiry-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / llama_index_tools_deepinquiry-0.1.0.tar.gz

Download URL llama_index_tools_deepinquiry-0.1.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
819ad5f8689b3e491092707246a6df2485841adb6a3ce16760293c3837317826
BLAKE2b-256 checksum
How to use checksums
89159bbd80ff4564d4911fac3cca5c8be954a61eb960edbc82d8b423fc5a736d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / llama_index_tools_deepinquiry-0.1.0-py3-none-any.whl

Download URL llama_index_tools_deepinquiry-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8d1fac07346f693122cfb76535c619a1d48d95408c7a7b8255e380c0231d0aad
BLAKE2b-256 checksum
How to use checksums
40894f4036fef4b783993de1c6ae99781182285d67f5406e876f7f08f7ea2d49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for llama-index-tools-deepinquiry 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page