Skip to main content

llama-index-tools-machinelibrary

Machine Library tools for LlamaIndex agents: citable search across scholarly papers, books, patents, standards and Wikipedia, passage search inside a document, and bounded full text. Each result's source_uri is the link to cite.

pip install llama-index-tools-machinelibrary
export MACHINELIBRARY_API_KEY=ml_...   # https://machinelibrary.ai/keys
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.tools.machinelibrary import MachineLibraryToolSpec

agent = FunctionAgent(
    tools=MachineLibraryToolSpec().to_tool_list(),
    llm=llm,  # any function-calling LLM
    system_prompt="Answer from Machine Library sources and cite each claim's source_uri.",
)
response = await agent.run("What evidence links GLP-1 agonists to reduced dementia risk?")

Requests are billed per call to the key's account (pricing). Retrieved text is evidence to review, not proof that an answer is correct.

Search profiles (0.2.0)

Search scope and ranking defaults come from the server's API profile, which currently searches Library documents. Clients do not select indexes. The index option (and LlamaIndex's social option) has been removed; call search(query, limit=...) in Python or search(query, { limit }) in JavaScript. For unified Library and Social search through MCP, connect to https://mcp.machinelibrary.ai and call machinelibrary_search.

Metadata

Release files for llama-index-tools-machinelibrary 0.2.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-machinelibrary 0.2.0
File Size Uploaded Provenance Actions
llama_index_tools_machinelibrary-0.2.0.tar.gz 4.2 kB Without provenance Details for llama_index_tools_machinelibrary-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llama-index-tools-machinelibrary 0.2.0
File Interpreter ABI Platform Actions
llama_index_tools_machinelibrary-0.2.0-py3-none-any.whl Python 3 none any Details for llama_index_tools_machinelibrary-0.2.0-py3-none-any.whl

Total release size: 8.8 kB

Release files / llama_index_tools_machinelibrary-0.2.0.tar.gz

Download URL llama_index_tools_machinelibrary-0.2.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
75d12038169e1e5d27e2102e3ba3f593426f695b0a4a6cbb92eda1b54a64fb05
BLAKE2b-256 checksum
How to use checksums
c42e1eb4d1ed6b1739e1fe0f86d461fd0ed2f275d913ad3eed8975d456cec324
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Release files / llama_index_tools_machinelibrary-0.2.0-py3-none-any.whl

Download URL llama_index_tools_machinelibrary-0.2.0-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5db01d749e1c785b66a0156fad22f3e7bb912178096a8817e2d753264f087e0
BLAKE2b-256 checksum
How to use checksums
262d9062f1bd1f4299cd2b377572f78504d717b47eaa9bafb73100c9b9ead325
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.7

Security for llama-index-tools-machinelibrary 0.2.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.2.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