Find answers from the community

Updated 10 months ago

how to get the data from an API

@kapa.ai how to get the data from an API
k
W
v
7 comments
Please stand by @vigneshzoro as I search the knowledge base. I normally take about 20 seconds or so. :wave:
----------------------
To get data from an API using LlamaIndex, you would use the Data connectors tool. Data connectors are designed to ingest your existing data from their native source and format, which could be APIs, PDFs, SQL, and much more.

However, the specific code or method to use for this task is not provided in the given extracts. For more detailed instructions, you should refer to the LlamaIndex documentation ().
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Which API are you talking about?
Hi @WhiteFang_Jr My data is stored in elastic search I need to invoke an API call to fetch the data from the API call based on the query provided by me to the query engine
When you say data you mean the embeddings right?
LlamaIndex has ElasticSearch implementation, You can follow this to built your vector store: https://docs.llamaindex.ai/en/stable/examples/vector_stores/ElasticsearchIndexDemo.html
No, the data is stored in an external elastic search. I need to fetch the data by using llama index / llm
Either by using some functions of llama index or by using a prompt for the llm to invoke
Add a reply
Sign up and join the conversation on Discord