Skip to content

UNDP-Accelerator-Labs/Web-AI-Assistant

Repository files navigation

UNDP Web Enabled RAG Assistant

Setting things up

This code base is written in Python3. Make sure to have Python3.13 or above installed on your machine. It also requires that Ollama be installed on your machine, and that you have downloaded at least one open source Ollama compatible model.

While it is configurable to use an online search engine, we strongly recommend you use an open-source local engine. Searxng is great for this! It is a privacy-respecting, hackable mastersearch engine—one that aggregates multiple different engines like Duck Duck Go, Google, etc.

search:
	...
	formats:
		- html
		- ...
		- json

The AI agents use the json format. If you do not use Searxng, or do not activate the json format, you will need to edit the ./process/_03_perform_search.py file to return a json object with the appropriate formatting.

This of requires that you have Docker installed on your machine. Once Searxng is installed, run it via Docker. This should start a localhost server on port 8080.

When these requirements are met, create a local python environment by running:

python -m venv /path/to/virtual/environment

Then install all the requirements:

pip install -r /path/to/requirements.txt

That is all! You should be good to go. To start the assistant, run:

python main.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages