MCPcopy Index your code
hub / github.com/1Panel-dev/MaxKB / embedding_by_paragraph_list

Function embedding_by_paragraph_list

apps/knowledge/task/embedding.py:56–58  ·  view source on GitHub ↗
(paragraph_id_list, model_id)

Source from the content-addressed store, hash-verified

54
55@celery_app.task(base=QueueOnce, once={"keys": ["paragraph_id_list"]}, name="celery:embedding_by_paragraph_list")
56def embedding_by_paragraph_list(paragraph_id_list, model_id):
57 embedding_model = get_embedding_model(model_id)
58 ListenerManagement.embedding_by_paragraph_list(paragraph_id_list, embedding_model)
59
60
61@celery_app.task(base=QueueOnce, once={"keys": ["document_id"]}, name="celery:embedding_by_document")

Callers 1

Calls 2

get_embedding_modelFunction · 0.70

Tested by

no test coverage detected