-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
39 lines (32 loc) · 1.29 KB
/
README.txt
File metadata and controls
39 lines (32 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
IIM Blazor Hybrid + WSL2 + RAG (Upload, PDF/DOCX Parsing, Sentence Chunking)
Includes:
- IIM.App.Hybrid (MAUI Blazor desktop) with RAG page:
- Upload .txt, .md, .pdf, .docx
- Toggle: sentence-based chunking or fixed-size chunking
- IIM.Api daemon with endpoints:
- /healthz, /v1/gpu, /v1/run, /v1/generate, /v1/stop-all
- /rag/index (raw text) [query: ?mode=fixed|sentences]
- /rag/upload (multipart) [query: ?mode=fixed|sentences]
- /agents/rag/query
- WSL2 scripts:
- scripts/setup_wsl.sh (installs Python deps + Docker)
- scripts/start_qdrant.sh (runs Qdrant)
- scripts/embed_service.py (FastAPI + sentence-transformers)
Quick Start
===========
WSL2 terminal:
bash scripts/setup_wsl.sh
bash scripts/start_qdrant.sh
python3 scripts/embed_service.py
Windows terminal 1 (daemon):
dotnet run --project src/IIM.Api/IIM.Api.csproj
Windows terminal 2 (desktop app):
dotnet build -t:Run -f net8.0-windows10.0.19041.0 -p:WindowsPackageType=None src/IIM.App.Hybrid/IIM.App.Hybrid.csproj
In the app:
- Go to RAG tab
- Check "Sentence chunking" for better semantic splits
- Upload .pdf/.docx/.txt/.md -> Index
- Ask questions; answer shows grounded context and citations
Notes:
- PDF parsing uses PdfPig; DOCX uses OpenXML SDK.
- Replace mock generation with real model backends later.