run-llama / llama_index

LlamaIndex is a data framework for your LLM applications
https://docs.llamaindex.ai
MIT License
36.32k stars 5.18k forks source link

[Documentation]: Install integrations #15486

Closed FrancescoSaverioZuppichini closed 2 months ago

FrancescoSaverioZuppichini commented 2 months ago

Documentation Issue Description

Currently nothing is said about this package https://github.com/run-llama/llama_index/tree/main/llama-index-integrations would be nice to know how to install it and use the tools inside it

Thanks!

Documentation Link

https://docs.llamaindex.ai/en/stable/api_reference/tools/openapi/

dosubot[bot] commented 2 months ago

To install and use the tools in the llama-index-integrations package from the llama_index GitHub repository, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/llama_index/llama_index.git
  2. Navigate to the Integrations Directory:

    cd llama_index/llama-index-integrations
  3. Install the Required Packages:

    pip install -r requirements.txt
  4. Use the Tools: For example, to use the Google tool:

    from llama_index.tools import google
    
    # Example usage of a Google tool
    result = google.search("LlamaIndex")
    print(result)

For more detailed information, you can refer to the example script provided in the llama-index-integrations directory, which demonstrates how to use the tools [1].

Additionally, the requirements.txt file lists the dependencies needed for the integrations:


waii-sdk-py
google-api-python-client
google-auth-httplib2
google-auth-oauthlib
beautifulsoup4
gql
requests_toolbelt
``` <sup>[[2]](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-waii/requirements.txt)</sup><sup>[[3]](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-google/requirements.txt)</sup><sup>[[4]](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/readers/llama-index-readers-graphql/requirements.txt)</sup>.

For installation instructions and dependencies, you can also refer to the `pyproject.toml` file:
```toml
[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
llama-index-core = "^0.10.48.post1"
llama-cloud = ">=0.0.11"
``` <sup>[[5]](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/indices/llama-index-indices-managed-llama-cloud/pyproject.toml)</sup>.

<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
logan-markewich commented 2 months ago

Check out llamahub for every integration

For example: https://llamahub.ai/l/tools/llama-index-tools-openapi