-
Notifications
You must be signed in to change notification settings - Fork 0
Python Additional RAG Vector
Mike edited this page May 28, 2026
·
1 revision
| Параметр | Описание |
|---|---|
name="default" |
имя store |
mode=None |
runtime mode |
backend="indexeddb" |
indexeddb, native, memory, ... |
metric="cosine" |
cosine, dot, euclidean
|
persist=True |
сохранять данные между запусками |
namespace="default" |
namespace внутри store |
options=None |
дополнительные backend options |
Создает service Unit типа vectorstorage. В native режиме default backend indexeddb
переписывается на native persistent store.
| Параметр | Описание |
|---|---|
emb |
обязательный embedding unit |
rerank=None |
optional reranker unit |
store=None |
optional vectorstorage unit; если нет, создается <name>-store
|
name="default" |
имя RAG unit |
mode=None |
runtime mode |
chunk_size=800 |
размер chunk |
chunk_overlap=120 |
перекрытие chunk |
top_k=5 |
сколько результатов возвращать |
candidate_k=30 |
сколько кандидатов брать до rerank |
score_threshold=None |
минимальный score |
options=None |
дополнительные options |
Создает composite Unit типа RAG: chunking, embeddings, vector store, optional reranker.
| Метод | Unit | Назначение |
|---|---|---|
add(...) |
RAG, vectorstorage
|
добавить документы/chunks или vector records |
search(...) |
RAG, vectorstorage
|
найти документы по text query или embedding |
delete(...) |
RAG, vectorstorage
|
удалить records по ids/filter |
clear(...) |
RAG, vectorstorage
|
очистить namespace |
stats() |
RAG, vectorstorage
|
получить статистику |
reindex(...) |
RAG |
переэмбеддить существующие chunks |
- xlocllm
- Quickstart
- About
- Functions Python
- Functions TypeScript
- Use cases
- Examples Python
- Examples TypeScript
- Shared GPU mode
-
Models catalog
- Models The best
- Models Full model list
- Models Use your model
- For native mode
- Models Native LLM tiny small
- Models Native LLM medium
- Models Native LLM large
- Models Native embedding
- Models Native reranker
- Models Native translator
- Models Native tts
- Models Native vlm
- Models Native asr
- Models Native ocr
- Models Native image-classification
- Models Native object-detection
- Models Native image-segmentation
- Models Native depth-estimation
- Models Native document-layout
- Models Native table-detection
- Models Native document-qa
- Models Native language-id
- Models Native audio-classification
- Models Native text-classification
- Models Native ner
- Models Native zero-shot-text
- Models Native summarization
- Models Native text2text
- Models Native code
- For webgpu mode
- For web mode
- Models Web LLM
- Models Web embedding
- Models Web reranker
- Models Web translator
- Models Web tts
- Models Web vlm
- Models Web asr
- Models Web ocr
- Models Web image-classification
- Models Web object-detection
- Models Web image-segmentation
- Models Web depth-estimation
- Models Web document-layout
- Models Web table-detection
- Models Web document-qa
- Models Web zero-shot-image
- Models Web language-id
- Models Web audio-classification
- Models Web text-classification
- Models Web ner
- Models Web zero-shot-text
- Models Web summarization
- Models Web text2text
- Models Web code
- Dev