This is the Nillion Movement POC
- Ollama: Install Ollama locally. Follow the Ollama Installation Guide.
- Brew: Install Homebrew. Follow the Homebrew Installation Guide.
- Docker: Install Docker. Follow the Docker Installation Guide.
(Due to this issue)
brew install sqlite(Follow the workaround outlined in the SQLiteVec documentation)
brew install python@3.12python3.12 --versionThe Python version should display as 3.12.*.
poetry env use python3.12poetry installpoetry run python agent_modules/classifier/blockchain_action/finetune_blockchain_actions.pypoetry run python agent_modules/classifier/domain/train_domain_classifier_distilbert.pypoetry env use python3.12poetry installdocker compose -f opensearch/docker-compose.ci.yml up -d2. Insert the data into OpenSearch by running the /mighty_agent/opensearch/opensearch_insert_docs.ipynb notebook.
Make sure you are choosing the correct interpreter in the notebook by following the steps below:
- Check the current python virtual environment:
poetry env infoSample output:
Virtualenv
Python: 3.12.9
Implementation: CPython
Path: /Users/nguyentruong/Library/Caches/pypoetry/virtualenvs/mighty-agent-QIDbtWhq-py3.12
Executable: /Users/nguyentruong/Library/Caches/pypoetry/virtualenvs/mighty-agent-QIDbtWhq-py3.12/bin/python
Valid: True
Base
Platform: darwin
OS: posix
Python: 3.12.9
Path: /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12
Executable: /opt/homebrew/opt/python@3.12/Frameworks/Python.framework/Versions/3.12/bin/python3.12
3. Choose the interpreter that matches the virtual environment showed above (which is /Users/nguyentruong/Library/Caches/pypoetry/virtualenvs/mighty-agent-QIDbtWhq-py3.12 in my case)
4. Run the notebook with the correct interpreter (with VSCode-based notebook, click the Run All button):
ollama run llama3.2:3bpoetry run chainlit run app.py