From 73ee9f6b9355c244e078e021797e4b37e87f8f3b Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 4 Jan 2026 15:16:16 +0100 Subject: fixed edge case for python version --- readme | 3 +++ requirements.txt | 1 + search.py | 6 +++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/readme b/readme index 8e37e85..f07bd89 100644 --- a/readme +++ b/readme @@ -1,6 +1,8 @@ #Installation: (pytorch higher version should work as well, the gpu i have is a bit old) python3 -m venv venv && source venv/bin/activate pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121 +Python 3.10+ (developed on 3.12.9) +please use nvidia gpu, it vvv slow on cpu #Usage: ./search.py "your research question" @@ -14,3 +16,4 @@ This program uses two research tools: - local document(in ./documents) search using an embedding model + ChromaDB for semantic retrieval - web search using duckduckgo A local llm orchestrates the research loop, deciding when enough information has been gathered, then provides a final concise summary. + diff --git a/requirements.txt b/requirements.txt index d003057..dc1372f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,7 @@ transformers accelerate sentence-transformers chromadb +pysqlite3-binary httpx beautifulsoup4 ddgs diff --git a/search.py b/search.py index c370ffe..caf1567 100755 --- a/search.py +++ b/search.py @@ -3,8 +3,12 @@ multi-agent deep research thingy """ +# SQLite workaround for ChromaDB on older systems +__import__('pysqlite3') +import sys +sys.modules['sqlite3'] = sys.modules.pop('pysqlite3') -import os, re, sys +import os, re from dataclasses import dataclass, field from pathlib import Path import torch -- cgit