You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README_EN.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ LoFS fuses local file organization with semantic retrieval to deliver an “alwa
20
20
- 🔍 **Multimodal ingestion**: parses `.md`, `.txt`, `.docx`, `.pdf`, `.pptx`, `.json`, and extracts both text and images.
21
21
- 📁 **Explorer-style UX**: mount/remount flows, PDF-only parsing, and live progress indicators keep operations transparent.
22
22
- 🧠 **Theme-driven retrieval**: augments the Faiss/BM25s/reranker stack with document-level summaries plus semantic/lexical blending so questions land on the right topic before falling back to full-text recall.
23
+
- 🤖 **Multi-provider LLM support**: built-in adapters for SiliconFlow, ModelScope, and Alibaba DashScope (Qwen) let you plug in your favorite service, validate connectivity, and use streaming responses with `<think>` reasoning blocks.
24
+
- 💬 **Chat experience upgrades**: the chat view remembers your last-selected model across restarts, and thinking traces render as dedicated gray cards for easier auditing.
23
25
- 🔒 **Local-first by design**: SQLite and Faiss stay on disk, ensuring data never leaves your machine.
24
26
- 🛠️ **Shipping-ready app**: Electron desktop shell plus FastAPI backend, complete with cross-platform packaging scripts.
25
27
@@ -31,6 +33,7 @@ LoFS fuses local file organization with semantic retrieval to deliver an “alwa
31
33
-**Electron desktop**: renders the file tree, orchestration panels, and search UI.
32
34
-**FastAPI backend**: exposes REST endpoints for mounting, parsing, indexing, and retrieval orchestration.
33
35
-**Retrieval pipeline**: Faiss + BM25s + FlagEmbedding (BGE family) power fast semantic/keyword blending, now enhanced with summary vectors for topic-first search, plus CLIP embeddings for images.
36
+
-**Model management**: the desktop UI exposes a model library so you can add custom endpoints, run health checks, and manage keys for SiliconFlow, ModelScope, and DashScope in one place.
34
37
-**Storage layer**: SQLite for metadata, Faiss for vector indices, and the local filesystem for model caches.
35
38
36
39
```text
@@ -51,6 +54,7 @@ LoFS fuses local file organization with semantic retrieval to deliver an “alwa
51
54
3. 🧮 **Index build**: persist embeddings to Faiss, keyword metadata to BM25s, and structured info to SQLite.
52
55
4. 🧾 **Topic summaries (optional)**: when the “Document Theme Summary” setting is on, a chosen LLM produces per-document abstracts that are stored in SQLite and embedded separately.
53
56
5. 🔎 **Layered retrieval**: each query first matches against the summary vectors with a semantic (0.6) + lexical (0.4) score fusion; summaries scoring ≥ 0.7 bring their full document chunks and the summary into the LLM prompt. If nothing passes the threshold, the pipeline transparently falls back to classic hybrid retrieval.
57
+
6. 💬 **Conversational hand-off**: when a model is selected in the chat panel, LoFS streams replies (including `<think>` reasoning for ModelScope/DashScope) and caches the selection so it’s restored on the next launch.
54
58
55
59
Model assets download lazily the first time a capability is invoked. Prefetch them to warm the cache:
- 🔁 **Graceful fallback**: if no summary clears the threshold, LoFS automatically reverts to the standard hybrid pipeline; matched responses surface a “Reference Theme” card for transparency.
65
69
- 🧩 **Prompt enrichment**: selected documents contribute both the full chunk set and their summaries to the LLM context, helping the assistant stay on-topic and cite accurately.
66
70
71
+
### 3.2 Multi-provider LLM integration
72
+
- Configure API keys under **Settings → API Key** (`siliconflwApiKey`, `modelscopeApiKey`, `qwenApiKey`).
73
+
- Use the **Model Library** to add endpoints and run connectivity tests; failures return verbose error payloads for troubleshooting.
74
+
- During chat, the dropdown retains your last pick even after restarts. Models that emit `<think>` blocks (ModelScope/DashScope) render their reasoning in a separate, gray “Thinking” panel ahead of the final answer.
Copy file name to clipboardExpand all lines: electron/package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "LoFS",
3
-
"version": "1.1.8",
3
+
"version": "1.1.9",
4
4
"description": "LoFS (Load once Fast Search) is a desktop-first knowledge base manager for local files. Mount a directory once and enjoy millisecond hybrid search afterwards.",
0 commit comments