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

Refactor: Merge and generalize Agent types #21

Merged
merged 3 commits into from
Sep 17, 2024
Merged

Conversation

cvauclair
Copy link
Contributor

@cvauclair cvauclair commented Sep 16, 2024

  • Add RagAgent functionality to Agent type
  • Deprecate RagAgent and Model types
  • Refactor Agent (used to be RagAgent) vector store indices into trait objects to allow multiple different types of vector stores per agent

@cvauclair cvauclair requested a review from 0xMochan September 16, 2024 19:33
Copy link
Contributor

@0xMochan 0xMochan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, 1 small question and a small documentation error

.into_iter()
.map(|(_, doc)| {
let doc_text = serde_json::to_string_pretty(&doc.document)
.unwrap_or_else(|_| doc.document.to_string());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason why this is prettified or is this standard.

//! // Create vector store index
//! let index = vector_store.index(embedding_model);
//!
//! let rag_agent = openai.context_rag_agent(openai::GPT_4O)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this not outdated, should it not be openai.agent?

@cvauclair cvauclair merged commit 3c67742 into main Sep 17, 2024
2 checks passed
@cvauclair cvauclair deleted the refactor/agent-type branch November 7, 2024 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants