Skip to content

spectruma/rag

Repository files navigation

rag

how to use rag with ollama.

Based on Matt Williams tutorial at https://github.com/technovangelist/videoprojects

Requirements:

and please install Python in a virtual inviroment.

Usage:

check out frist config.ini. In this file we define the main model and also the embedding model used to create the embeddings.

For instance:

  • mainmodel=llama3
  • embedmodel=nomic-embed-text (setting "internal" uses chromadb's embedder.)

use generate.py to produce the embeddings according to sourcedocs-2.txt cli: python generate.py

use aks.py to retrieve information. cli: python ask.py "Why is the sky blue?" or something what is related to your docs.

About

how to use rag with ollama

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages