Canner / wren-engine

🤖 The semantic engine for LLMs, bringing semantic context to AI agents. 🔥
https://getwren.ai/oss
Apache License 2.0
129 stars 34 forks source link

feat(function-list): search file by data source name #859

Closed grieve54706 closed 2 weeks ago

grieve54706 commented 2 weeks ago

Follow up https://github.com/Canner/wren-engine/pull/858 Change the function file path to a folder path and search the file by data source name. The system will find the CSV file by the data source name in the path from the env var

Before

Env var

REMOTE_FUNCTION_LIST_PATH=/resource/functions.csv

Actual path

/resource/functions.csv

API

/v3/connector/functions

After

Env var

REMOTE_FUNCTION_LIST_PATH=/resource

Actual path by data source

/resource/postgres.csv

API

/v3/connector/postgres/functions