refactor: move model info to constants

- Added EMBEDDING_MODEL and RERANKER_MODEL to `constants.ts`.
- Updated imports to use these constants in `agent.ts`, `agent_tools/reranker.ts`, and `setup/ingest.ts`.
- Replaced hard‑coded model strings with the new constants for Ollama embeddings and reranker.
This commit is contained in:
2026-04-01 18:31:30 +05:30
parent 0c45062348
commit f5d3884d5a
4 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -3,7 +3,8 @@
* Uses Ollama's reranker API to score documents against a query.
*/
const RERANKER_MODEL = "dengcao/Qwen3-Reranker-0.6B:Q8_0";
import { RERANKER_MODEL } from "../constants";
const OLLAMA_HOST = process.env.OLLAMA_HOST || "http://localhost:11434";
export interface RerankResult<T> {