Query your own documents with LlamaIndex and Gemini
In this article I am going to explain about on creating application for indexing and querying your own documents using LlamaIndex and Gemini. I will provide step by step guide to create application in python. Prerequisites for this example is as follows: Visual studio code Python Api Key of Gemini can be obtain from https://aistudio.google.com Open visual studio code and create the file with name "demo.py". Now in visual studio code and go to terminal menu and click on New terminal link it will open new terminal. In terminal enter below command to install the LlamaIndex library and LlamaIndex gemini library in your machine. pip install llama-index llama-index-llms-gemini llama-index-embeddings-gemini Create the folder named "doc" in root directory of the application as shown in below image and store the documents you want to query. Now copy below code and paste in the "demo.py" file. from llama_index.embeddings.gemini import GeminiEmbedd...