Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: agent rag use documents field other than embeddings dir #51

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Argcfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ The agent has the following folder structure:
```
└── agents
└── myagent
├── embeddings/ # Contains RAG files for knowledge
├── functions.json # Function declarations file (Auto-generated)
├── index.yaml # Agent definition file
└── tools.{sh,js,py} # Agent tools script
Expand All @@ -145,6 +144,8 @@ version: v0.1.0
instructions: You are a test ai agent to ...
conversation_starters:
- What can you do?
documents:
- files/doc.pdf
```

Refer to `./agents/todo-{sh,js,py}` for examples of how to implement a agent.
Expand Down