feat: add evaluation service module for RAG and Agent (#2070)

This commit is contained in:
Aries-ckt
2024-10-18 17:42:11 +08:00
committed by GitHub
parent 253c367ceb
commit 811ce63493
29 changed files with 1263 additions and 61 deletions

View File

@@ -122,3 +122,11 @@ def register_serve_apps(system_app: SystemApp, cfg: Config, webserver_port: int)
system_app.register(FileServe)
# ################################ File Serve Register End ########################################
# ################################ Evaluate Serve Register Begin #######################################
from dbgpt.serve.evaluate.serve import Serve as EvaluateServe
# Register serve Evaluate
system_app.register(EvaluateServe)
# ################################ Evaluate Serve Register End ########################################

View File

@@ -447,7 +447,7 @@ def chunk_list(
"doc_type": query_request.doc_type,
"content": query_request.content,
}
chunk_res = service.get_chunk_list(
chunk_res = service.get_chunk_list_page(
query, query_request.page, query_request.page_size
)
res = ChunkQueryResponse(