diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-28 06:36:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-28 06:36:56 +0800 |
| commit | f7f009b1da01b6065d8be153606c23dd6e674645 (patch) | |
| tree | 1674e15d4536bd5997330477330d64298b7a3217 /Argcfile.sh | |
| parent | ff3ee318d266064081c828f86d5a3c5109457729 (diff) | |
| download | llm-functions-docker-f7f009b1da01b6065d8be153606c23dd6e674645.tar.gz | |
feat: agent rag use `documents` field other than `embeddings` dir (#51)
Diffstat (limited to 'Argcfile.sh')
| -rw-r--r-- | Argcfile.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Argcfile.sh b/Argcfile.sh index a6e6e13..05b9cfb 100644 --- a/Argcfile.sh +++ b/Argcfile.sh @@ -235,7 +235,7 @@ build-bin@agent() { echo "Build agent $name" fi done - if [[ "$found" = "false" ]]; then + if [[ "$found" == "false" ]] && [[ ! -d "$agent_dir" ]]; then not_found_agents+=("$name") fi done @@ -276,7 +276,7 @@ build-declarations@agent() { echo "$json_data" > "$declarations_file" fi done - if [[ "$found" == "false" ]]; then + if [[ "$found" == "false" ]] && [[ ! -d "$agent_dir" ]]; then not_found_agents+=("$name") fi done |
