-
Notifications
You must be signed in to change notification settings - Fork 139
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: Add legal document review use case #467
base: main
Are you sure you want to change the base?
Conversation
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
@@ -192,7 +193,7 @@ export const installTemplate = async ( | |||
if ( | |||
props.template === "streaming" || | |||
props.template === "multiagent" || | |||
props.template === "extractor" | |||
props.template === "reflex" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to reflex
for sharing reflex code, the specified code for each use case moved to component/agents
folder; as reflex is only for python so it's a bit tricky, also welcome for better ideas.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about just storing those components in components/reflex
? as we might do something non-agent?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated! But it's a bit weird that using agents
value for the reflex. May be we can change the agents
param to useCase
?
output: Optional[Dict[str, Any]] | ||
|
||
|
||
class GuidelineHandlerState(rx.State): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the guideline step has a nested data but Reflex is really hard to handle state with complex data so i split it into two models: GuidelineState and GuidelineHandlerState
program.useLlamaParse === undefined && | ||
program.template !== "extractor" | ||
) { | ||
// Reflex template doesn't support LlamaParse and LlamaCloud right now (cannot use asyncio loop in Reflex) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@leehuwuj please add a ticket for this if we continue using more reflex with this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I think it's worth logging a ticket for it: #468
@@ -51,7 +57,7 @@ export const askSimpleQuestions = async ( | |||
let llamaCloudKey = args.llamaCloudKey; | |||
let useLlamaCloud = false; | |||
|
|||
if (appType !== "extractor") { | |||
if (appType !== "extractor" && appType !== "contract_review") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not just?
if (appType !== "extractor" && appType !== "contract_review") { | |
if (template !== "reflex") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't have template value here, it's mapped later from the appType
@@ -192,7 +193,7 @@ export const installTemplate = async ( | |||
if ( | |||
props.template === "streaming" || | |||
props.template === "multiagent" || | |||
props.template === "extractor" | |||
props.template === "reflex" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about just storing those components in components/reflex
? as we might do something non-agent?
No description provided.