Posts

Use Chroma DB vector database in RAG application using llama index & Deepseek R1 local model

Image
 In previous article I have explained how to install Deepseek R1 model locally and create the RAG application using the locally downloaded models step by step. In this article I will explain Step-by-step to use the Chroma DB vector database in RAG application using llama index & Deepseek R1 local model with Ollama. Chroma DB is open source vector db which can be used to store the vector embeddings of documents and query the embeddings based on user query. I have used the same example used in previous article and added only Chroma DB integration code.   Prerequisites for this example is as follows: Visual studio code Python Ollama  Open visual studio code and create the file with name "sample.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, Chroma DB library, LlamaIndex Ollama and  LlamaIndex embedding Ollama library in your mac...

Download DeepSeek R1 Model Locally free | AI RAG with LlamaIndex, Local Embedding and Ollama

Image
In this article I will explain Step-by-step to locally download and use the DeepSeek R1 Model with Ollama for free! and also explain how to set up AI-powered Retrieval Augmented Generation (RAG) using the nomic-embed-text:latest  embedding model and run the DeepSeek R1 Model locally via Ollama .   Prerequisites for this example is as follows: Visual studio code Python Ollama  Open visual studio code and create the file with name "sample.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 Ollama and  LlamaIndex embedding Ollama library in your machine. pip install llama-index llama-index-llms-ollama llama-index-embeddings-ollama Create the folder named "doc" in root directory of the application as shown in below image and store the documents you want to query.   To get Ollama models list you can visit ollama ...