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

Function update_problem_embedding

apps/knowledge/task/embedding.py:234–243  ·  view source on GitHub ↗

更新问题 @param problem_id: @param problem_content: @param model_id: @return:

(problem_id: str, problem_content: str, model_id)

Source from the content-addressed store, hash-verified

232
233
234def update_problem_embedding(problem_id: str, problem_content: str, model_id):
235 """
236 更新问题
237 @param problem_id:
238 @param problem_content:
239 @param model_id:
240 @return:
241 """
242 model = get_embedding_model(model_id)
243 ListenerManagement.update_problem(UpdateProblemArgs(problem_id, problem_content, model))
244
245
246def update_embedding_knowledge_id(paragraph_id_list, target_knowledge_id):

Callers 1

editMethod · 0.90

Calls 3

UpdateProblemArgsClass · 0.90
update_problemMethod · 0.80
get_embedding_modelFunction · 0.70

Tested by

no test coverage detected