From 8dee6f9e6cbb5ed005af47f7b5b4e07e3af8941d Mon Sep 17 00:00:00 2001 From: Amruth-Vamshi Date: Wed, 7 Jun 2023 12:06:03 +0530 Subject: [PATCH 1/2] Added flow and visualizer. --- docs/buildingBlocks/flow.md | 13 +++++++++++++ docs/buildingBlocks/state-flow.md | 14 ++++++++++++++ sidebars.js | 6 ++++++ static/img/AmakrushiAI-Flow.svg | 4 ++++ 4 files changed, 37 insertions(+) create mode 100644 docs/buildingBlocks/flow.md create mode 100644 docs/buildingBlocks/state-flow.md create mode 100644 static/img/AmakrushiAI-Flow.svg diff --git a/docs/buildingBlocks/flow.md b/docs/buildingBlocks/flow.md new file mode 100644 index 0000000..f4a3104 --- /dev/null +++ b/docs/buildingBlocks/flow.md @@ -0,0 +1,13 @@ +--- +title: Prompt flow +sidebar_label: Prompt flow +--- + + + Prompt Flow + + + +## Flowchart + +![Flowchart](/img/AmakrushiAI-Flow.svg) \ No newline at end of file diff --git a/docs/buildingBlocks/state-flow.md b/docs/buildingBlocks/state-flow.md new file mode 100644 index 0000000..5ef4da3 --- /dev/null +++ b/docs/buildingBlocks/state-flow.md @@ -0,0 +1,14 @@ +--- +title: State flow +sidebar_label: State flow +--- + + + State Flow + + + +## Visualizer + + + diff --git a/sidebars.js b/sidebars.js index 5468780..fa0ed3d 100644 --- a/sidebars.js +++ b/sidebars.js @@ -12,6 +12,12 @@ module.exports = { collapsed: false, items: ['development/starting'], }, + { + type: 'category', + label: 'Building Blocks', + collapsed: false, + items: ['buildingBlocks/flow', 'buildingBlocks/state-flow'], + }, { type: 'category', label: 'Infra', diff --git a/static/img/AmakrushiAI-Flow.svg b/static/img/AmakrushiAI-Flow.svg new file mode 100644 index 0000000..1030f23 --- /dev/null +++ b/static/img/AmakrushiAI-Flow.svg @@ -0,0 +1,4 @@ + + + +
[1]
[1]
Hardcode to odiya
Hardcode to o...
0.8
0.8
Validation Failure
Validation Failure
Input Text
Input Text
Valid Input
Valid Input
Failure
Failure
Success
and English
Success...
Success and
other lang
Success and...
Detect language
Detect language
Respond back to bot with message
Please try rephrasing your question or try again later
Respond back to bot with message...
End
End
history exists
history exists
no conversation
history
no conversation...
Get user
 chat-history
[3]
Get user...
if empty
if empty
whatever comes
whatever comes
Get neural co-reference
[4]
Get neural co-refere...
respond back to bot with message
We are unable to process your request at the moment. Please try again later or contact our support team.
respond back to bot with message...
If similar question
If similar question
if no similar questions found
if no similar questions found
Fetch older similar questions with similarity
0.97
[5]
Fetch older similar q...
pick the previously stored answer
[6]
pick the previously...
on success
on success
on failure
on failure
Translate back to input language
[9]
Translate back to in...
Respond back with the translated answer
[10]
Respond back with the t...
Respond back to bot with message
Please try rephrasing your question or try again later
[11]
Respond back to bot with message...
End
End
x>0.84 with content
x>0.84 with content
<0.5
<0.5
No Content Found
No Content Found
Get docs with similarity more than 0.84
[7]
Get docs with similarity...
Whatever comes
Whatever comes
Update Prompt history
Update Prompt history
Sends docs as expert content and prompt to gpt3 [8]
Sends docs as expert co...
Question with similarity less than 0.5 should get a standard response
Question with simila...
Respond back to bot with message
Please try rephrasing your question or try again later
Respond back to bot with messa...
Success
Success
Failure
Failure
Translate to english
[2]
Translate to english...
YES
YES
NO
NO
4
4
if it requires coref?
[15]
if it requires coref...
0.30
0.30
2
2
Time taken in seconds
Time taken in seconds
Response to user
Response to user
Yet to implement
Yet to implement
Answering
Answering
Finding the question
Finding th...
Respond back to bot with message
We are unable to process your request at the moment.
Respond back to bot with message...
New summarization model[12]
New summarization model...
New neural co-reference model
[13]
New neural co-refere...
Valid
Valid
Failure
Failure
Send the prompt itself
Send the prompt itself
Check Validity of coref resolution [16]
Check Validity of co...
S1
S1
S2
S2
S3
S3
S4
S4
Asks GPT to respond with what it has. [8]
Asks GPT to respond wit...
Should be added to prompt history if there is a thumbs up
Should be added to prompt hist...
Verify if the Answer matches the Question
Verify if the Answer...
Text is not SVG - cannot display
\ No newline at end of file From dc7610008662ad33b2e24f3c6b2c8488bdf59511 Mon Sep 17 00:00:00 2001 From: Amruth-Vamshi Date: Mon, 19 Jun 2023 09:23:32 +0530 Subject: [PATCH 2/2] updated state diagram. --- docs/buildingBlocks/state-flow.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/buildingBlocks/state-flow.md b/docs/buildingBlocks/state-flow.md index 5ef4da3..71c1cab 100644 --- a/docs/buildingBlocks/state-flow.md +++ b/docs/buildingBlocks/state-flow.md @@ -10,5 +10,4 @@ sidebar_label: State flow ## Visualizer - - + \ No newline at end of file