feat: Paperless integration (content endpoint, list+sync). Add /paperless/sync and docs
This commit is contained in:
17
README.md
17
README.md
@@ -212,6 +212,22 @@ curl -s -X POST http://localhost:26000/paperless/hook \
|
||||
|
||||
해당 훅은 문서 도착을 통지받는 용도로 제공됩니다. 실제 본문 텍스트는 Paperless API로 조회해 `/index/upsert`로 추가하세요.
|
||||
|
||||
### Paperless 배치 동기화(`/paperless/sync`)
|
||||
|
||||
Paperless에서 다수 문서를 일괄 인덱싱합니다.
|
||||
|
||||
```bash
|
||||
curl -s -X POST http://localhost:26000/paperless/sync \
|
||||
-H 'Content-Type: application/json' -H 'X-API-Key: <키>' \
|
||||
-d '{
|
||||
"page_size": 50,
|
||||
"ordering": "-created",
|
||||
"tags": null,
|
||||
"query": null,
|
||||
"limit": 200
|
||||
}'
|
||||
```
|
||||
|
||||
## 시놀로지 메일/오피스 연동 가이드(요약)
|
||||
|
||||
- **검색/QA 호출 엔드포인트**: `http://<AI서버IP>:26000/search`, `http://<AI서버IP>:26000/chat`
|
||||
@@ -229,6 +245,7 @@ curl -s -X POST http://localhost:26000/paperless/hook \
|
||||
- `BASE_MODEL`(기본 `qwen2.5:7b-instruct`)
|
||||
- `BOOST_MODEL`(기본 `qwen2.5:14b-instruct`)
|
||||
- `ENGLISH_MODEL`(기본 `llama3:8b-instruct`): 영어 감지 시 라우팅 대상
|
||||
- `ENGLISH_RATIO_THRESHOLD`(기본 `0.65`): 영어 비율 임계값(초과 시 영어 모델)
|
||||
- `EMBEDDING_MODEL`(기본 `nomic-embed-text`)
|
||||
- `INDEX_PATH`(기본 `data/index.jsonl`)
|
||||
- `PAPERLESS_BASE_URL`, `PAPERLESS_TOKEN`(선택): Paperless API 연동 시 사용
|
||||
|
||||
Reference in New Issue
Block a user