summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-01-04 15:16:16 +0100
committerYour Name <you@example.com>2026-01-04 15:16:16 +0100
commit73ee9f6b9355c244e078e021797e4b37e87f8f3b (patch)
tree06095829df9cdac7dd4ec96cfe371ed20e3f3391
parent3a98216eccf326cfd322478cbf791232d3390c61 (diff)
fixed edge case for python versionHEADmain
-rw-r--r--readme3
-rw-r--r--requirements.txt1
-rwxr-xr-xsearch.py6
3 files changed, 9 insertions, 1 deletions
diff --git a/readme b/readme
index 8e37e85..f07bd89 100644
--- a/readme
+++ b/readme
@@ -1,6 +1,8 @@
1#Installation: (pytorch higher version should work as well, the gpu i have is a bit old) 1#Installation: (pytorch higher version should work as well, the gpu i have is a bit old)
2python3 -m venv venv && source venv/bin/activate 2python3 -m venv venv && source venv/bin/activate
3pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121 3pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121
4Python 3.10+ (developed on 3.12.9)
5please use nvidia gpu, it vvv slow on cpu
4 6
5#Usage: 7#Usage:
6./search.py "your research question" 8./search.py "your research question"
@@ -14,3 +16,4 @@ This program uses two research tools:
14 - local document(in ./documents) search using an embedding model + ChromaDB for semantic retrieval 16 - local document(in ./documents) search using an embedding model + ChromaDB for semantic retrieval
15 - web search using duckduckgo 17 - web search using duckduckgo
16A local llm orchestrates the research loop, deciding when enough information has been gathered, then provides a final concise summary. 18A local llm orchestrates the research loop, deciding when enough information has been gathered, then provides a final concise summary.
19
diff --git a/requirements.txt b/requirements.txt
index d003057..dc1372f 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -4,6 +4,7 @@ transformers
4accelerate 4accelerate
5sentence-transformers 5sentence-transformers
6chromadb 6chromadb
7pysqlite3-binary
7httpx 8httpx
8beautifulsoup4 9beautifulsoup4
9ddgs 10ddgs
diff --git a/search.py b/search.py
index c370ffe..caf1567 100755
--- a/search.py
+++ b/search.py
@@ -3,8 +3,12 @@
3multi-agent deep research thingy 3multi-agent deep research thingy
4""" 4"""
5 5
6# SQLite workaround for ChromaDB on older systems
7__import__('pysqlite3')
8import sys
9sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
6 10
7import os, re, sys 11import os, re
8from dataclasses import dataclass, field 12from dataclasses import dataclass, field
9from pathlib import Path 13from pathlib import Path
10import torch 14import torch