Remove langchain dataset retrival agent logic (#3311)

This commit is contained in:
Jyong 2024-04-10 20:37:22 +08:00 • committed by GitHub
commit b6de97ad53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 341 additions and 966 deletions

View file

@ -156,6 +156,8 @@ class ChatAppRunner(AppRunner):
dataset_retrieval = DatasetRetrieval()
context = dataset_retrieval.retrieve(
app_id=app_record.id,
user_id=application_generate_entity.user_id,
tenant_id=app_record.tenant_id,
model_config=application_generate_entity.model_config,
config=app_config.dataset,