Skip to content

asimov-platform/llama-index-asimov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

llama-index-asimov

License Compatibility Package

📦 Packages

This repository currently provides:

Package Description PyPI
llama-index-readers-asimov Reader module that runs ASIMOV importers via subprocess 📦 PyPI

🛠️ Prerequisites

⬇️ Installation

Installation from PyPI

pip install -U llama-index-readers-asimov

👉 Examples

DuckDuckGo Results via SerpAPI

from llama_index.readers.asimov import AsimovReader

reader = AsimovReader(
    module="serpapi",
    url="https://duckduckgo.com/?q=LangChain+roadmap"
)

for result in reader.load_data():
    print(result)

Tip

On your host, make sure that asimov-serpapi-importer can be found in your PATH and that you've defined the SERPAPI_KEY environment variable:

export SERPAPI_KEY="..."

X (Twitter) Profile via Bright Data

Use e.g. the Bright Data module to fetch a public X profile:

from llama_index.readers.asimov import AsimovReader

reader = AsimovReader(
    module="brightdata",
    url="https://x.com/llama_index"
)

for result in reader.load_data():
    print(result)

Tip

On your host, make sure that asimov-brightdata-importer can be found in your PATH and that you've defined the BRIGHTDATA_API_KEY environment variable:

export BRIGHTDATA_API_KEY="..."

X (Twitter) Followers via Apify

Use e.g. the Apify module to fetch the followers/followees for an X profile:

from llama_index.readers.asimov import AsimovReader

reader = AsimovReader(
    module="apify",
    url="https://x.com/llama_index/followers"
)

for result in reader.load_data():
    print(result)

Tip

On your host, make sure that asimov-apify-importer can be found in your PATH and that you've defined the APIFY_TOKEN environment variable:

export APIFY_TOKEN="..."

📚 Reference

llama-index-asimov.readthedocs.io

👨‍💻 Development

git clone https://github.com/asimov-platform/langchain-asimov.git

Share on X Share on Reddit Share on Hacker News Share on Facebook Share on LinkedIn

About

LlamaIndex integration with the ASIMOV Platform.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors

Languages