-
Notifications
You must be signed in to change notification settings - Fork 2
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
[CAI-183] Chatbot Patch query api #1198
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
ac9b39a
feat(chatbot): session GSI
batdevis 36c89af
feat(chatbot): docker compose
batdevis a2c16c7
fix(chatbot): dynamodb and redis for local development with docker co…
batdevis c633df6
Merge branch 'chatbot/docker-compose-complete' into chatbot/sessions-…
batdevis 08a7fec
chore(chatbot):remove duplicate imports
batdevis 7fe9101
chore(chatbot): linting
batdevis 9b2eb61
fix(chatbot):create index in docker
batdevis b251837
chore(chatbot): llamaindex index id
batdevis 4ecd4b3
fix(chatbot): create vector index with all docs
batdevis a84581c
Merge branch 'main' into chatbot/docker-compose-complete
batdevis ea7d3db
chore(chatbot): terraform lint
batdevis 28695e3
fix(chatbot): terraform syntax
batdevis 238edfd
chore(chatbot): remove dynamodb options
batdevis 5f63560
chore(chatbot): from global to local secondary index
batdevis a8f4c9a
feat(chatbot): find or create session
batdevis 9f9e218
Merge branch 'main' into chatbot/sessions-query-by-date
batdevis 859c298
Merge branch 'main' into chatbot/docker-compose-complete
batdevis 1caa859
feat(chatbot): PATCH /sessions/{sessionId}/queries/{id} feedback API
batdevis 812b4c4
chore(chatbot): lint
batdevis f43a771
chore: merge main
batdevis d96a9f9
chore: remove old var
batdevis 9526c17
chore: merge main
batdevis a5177df
Update apps/chatbot/docker/compose.yaml
batdevis 4daccf8
chore: remove logs
batdevis f5bdfd3
Merge branch 'chatbot/docker-compose-complete' of github.com:pagopa/d…
batdevis c123b5c
fix(chatbot): compose vars
batdevis aa59ca5
Merge branch 'main' into chatbot/docker-compose-complete
batdevis 6d11e67
Merge branch 'chatbot/docker-compose-complete' into chatbot/sessions-…
batdevis 4b6ee00
Merge branch 'chatbot/sessions-query-by-date' into patch-query-api
batdevis 5e07dbe
Update modules
mdciri da8a41c
Update config prompts
mdciri b57d55c
Update env example
mdciri 62fffa1
Merge branch 'main' into chatbot/docker-compose-complete
batdevis f7b05e6
Merge branch 'languages/chatbot/cai-198' into chatbot/docker-compose-…
batdevis 278d56d
redis admin port
batdevis 91c782a
chore: add env example var
batdevis ee03467
Merge branch 'chatbot/docker-compose-complete' into chatbot/sessions-…
batdevis 964c202
Merge branch 'chatbot/sessions-query-by-date' into patch-query-api
batdevis 01d1a2d
dynamodb utility scripts for local development
batdevis 0a76aaa
page params
batdevis e52635f
CHB_SESSION_MAX_DURATION_DAYS env var
batdevis f5d1b31
chore: dynamodb local scripts
batdevis e46704c
fix(chatbot): query list filter
batdevis 682c2de
chore(chatbot): remove query detail API
batdevis 54c9cca
feat(chatbot): queries in ascending order
batdevis 9ca62dd
chore: merge main
batdevis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
docker compose -f docker/compose.yaml -p chatbot run create_index |
33 changes: 33 additions & 0 deletions
33
apps/chatbot/scripts/dynamodb-create-table-queries-local.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
aws dynamodb create-table \ | ||
--table-name chatbot-local-queries \ | ||
--key-schema \ | ||
AttributeName=sessionId,KeyType=HASH \ | ||
AttributeName=id,KeyType=RANGE \ | ||
--attribute-definitions \ | ||
AttributeName=id,AttributeType=S \ | ||
AttributeName=sessionId,AttributeType=S \ | ||
AttributeName=createdAt,AttributeType=S \ | ||
--local-secondary-indexes '[ | ||
{ | ||
"IndexName": "QueriesByCreatedAtIndex", | ||
"KeySchema": [ | ||
{ | ||
"AttributeName": "sessionId", | ||
"KeyType": "HASH" | ||
}, | ||
{ | ||
"AttributeName": "createdAt", | ||
"KeyType": "RANGE" | ||
} | ||
], | ||
"Projection": { | ||
"ProjectionType": "ALL" | ||
} | ||
} | ||
]' \ | ||
--table-class STANDARD \ | ||
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \ | ||
--endpoint-url http://localhost:8000 \ | ||
--region eu-south-1 \ | ||
--profile dummy |
33 changes: 33 additions & 0 deletions
33
apps/chatbot/scripts/dynamodb-create-table-sessions-local.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
aws dynamodb create-table \ | ||
--table-name chatbot-local-sessions \ | ||
--key-schema \ | ||
AttributeName=userId,KeyType=HASH \ | ||
AttributeName=id,KeyType=RANGE \ | ||
--attribute-definitions \ | ||
AttributeName=id,AttributeType=S \ | ||
AttributeName=userId,AttributeType=S \ | ||
AttributeName=createdAt,AttributeType=S \ | ||
--local-secondary-indexes '[ | ||
{ | ||
"IndexName": "SessionsByCreatedAtIndex", | ||
"KeySchema": [ | ||
{ | ||
"AttributeName": "userId", | ||
"KeyType": "HASH" | ||
}, | ||
{ | ||
"AttributeName": "createdAt", | ||
"KeyType": "RANGE" | ||
} | ||
], | ||
"Projection": { | ||
"ProjectionType": "ALL" | ||
} | ||
} | ||
]' \ | ||
--table-class STANDARD \ | ||
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5 \ | ||
--endpoint-url http://localhost:8000 \ | ||
--region eu-south-1 \ | ||
--profile dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
aws dynamodb delete-table \ | ||
--table-name chatbot-local-queries \ | ||
--endpoint-url http://localhost:8000 \ | ||
--region eu-south-1 \ | ||
--profile dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
aws dynamodb delete-table \ | ||
--table-name chatbot-local-sessions \ | ||
--endpoint-url http://localhost:8000 \ | ||
--region eu-south-1 \ | ||
--profile dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
aws dynamodb scan \ | ||
--table-name chatbot-local-queries \ | ||
--region eu-south-1 \ | ||
--endpoint-url http://localhost:8000 \ | ||
--profile dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
aws dynamodb scan \ | ||
--table-name chatbot-local-sessions \ | ||
--region eu-south-1 \ | ||
--endpoint-url http://localhost:8000 \ | ||
--profile dummy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
float
?