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

Release/improve reliability #98

Merged
merged 62 commits into from
Oct 18, 2024
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
66a60f9
await semantic layer builder
hsauve-scottlogic Aug 30, 2024
171a259
Create cache to store graph schema
hsauve-scottlogic Sep 2, 2024
33c02e9
Make cache global to prevent UnboundLocalError
hsauve-scottlogic Sep 2, 2024
ed3065d
Bring in latest code from Michael Down
hsauve-scottlogic Sep 3, 2024
80a1fd2
Refact with sanitise function
hsauve-scottlogic Sep 3, 2024
5cacc3e
Write tests and refactor
hsauve-scottlogic Sep 4, 2024
8bc9819
Delete unused file
hsauve-scottlogic Sep 4, 2024
7418409
Merge branch 'release/improve-reliability' into feature/calculate-sem…
hsauve-scottlogic Sep 4, 2024
75c95f2
Fix linting issue
hsauve-scottlogic Sep 4, 2024
c73a768
Pushing Intent Changes
Sep 5, 2024
d2d15fb
Change return value to json
hsauve-scottlogic Sep 5, 2024
9693524
Edit tests to adjust to changes + web agent validation to false
hsauve-scottlogic Sep 5, 2024
2ff6783
Push the webagent tests
Sep 5, 2024
87581bd
Remove sanitise function + move nested function out of main function
hsauve-scottlogic Sep 6, 2024
3dea876
Separate logic by creating methods
hsauve-scottlogic Sep 6, 2024
1929ddf
Merge pull request #89 from WaitThatShouldntWork/feature/calculate-se…
hsauve-scottlogic Sep 6, 2024
c78c1f7
Merge branch 'release/improve-reliability' into feature/imporove-inte…
Sep 9, 2024
7795a45
Changing apostrophe
Sep 9, 2024
480ee05
Merge pull request #90 from WaitThatShouldntWork/feature/imporove-int…
gaganahluwalia Sep 9, 2024
8cbb312
Merge branch 'release/improve-reliability' into featuer/change-webAge…
Sep 9, 2024
5ea5f1c
Lint changes
Sep 9, 2024
24add54
Merge pull request #91 from WaitThatShouldntWork/featuer/change-webAg…
gaganahluwalia Sep 9, 2024
84a6ca2
changes following merge conflict
hsauve-scottlogic Sep 9, 2024
78fa412
Edit chart generator tests to move away from unittest
hsauve-scottlogic Sep 9, 2024
2d57698
Fix merging issues
hsauve-scottlogic Sep 9, 2024
369bf74
Fix merging issues with web agent tests
hsauve-scottlogic Sep 9, 2024
2dbe80f
Add tests based on PR comments
hsauve-scottlogic Sep 10, 2024
b473241
Merge pull request #92 from WaitThatShouldntWork/feature/fix-chart-ge…
hsauve-scottlogic Sep 10, 2024
711bd48
Move websocket related tests to correct directory
swood-scottlogic Sep 11, 2024
223f02a
Add user_confirmer and confirmations_manager to send confirmations th…
swood-scottlogic Sep 11, 2024
a464224
Add confirmation before chart is generated in chart_generator_agent
swood-scottlogic Sep 11, 2024
8ad67e6
Fix bug in the backend websocket
swood-scottlogic Sep 13, 2024
143d014
Add modal to respond to confirmation request on the front end
swood-scottlogic Sep 13, 2024
754b073
First push of FileAgent
Sep 16, 2024
7606ab4
Merge pull request #93 from WaitThatShouldntWork/feature/human-in-the…
swood-scottlogic Sep 17, 2024
bba9237
Merging Create file agent with release
Sep 17, 2024
f1d3704
Setting default files directory
Sep 17, 2024
2356d4c
setting default files dir in the load_env
Sep 17, 2024
bf0faf7
Update mistralai package: v0.1.8 => v1.1.0
swood-scottlogic Sep 19, 2024
4922922
Changes based on Seth's feeback and other cleaning.
Sep 20, 2024
1bf9859
Rename input chat response in tests (response => chat_response
swood-scottlogic Sep 24, 2024
d895510
Simplify Type Checking Carried Out on Api Response
swood-scottlogic Sep 24, 2024
b601ee1
Use Existing Local Variable in Log
swood-scottlogic Sep 24, 2024
cd190a7
Merge pull request #95 from WaitThatShouldntWork/feature/upgrade-mist…
swood-scottlogic Sep 24, 2024
99b9a99
FIrst commit with intent changes
Sep 25, 2024
8d63dd9
Merge pull request #94 from WaitThatShouldntWork/feature/create-file-…
gaganahluwalia Sep 25, 2024
ff4fb6d
Second commit with web scrape agent
Sep 25, 2024
6d2c3f9
Merge branch 'release/improve-reliability' into feature/accurate-retr…
Sep 26, 2024
925bd92
Push the changes for the first 4 tests
Oct 3, 2024
276831a
Extra help for vscode users
mnyamunda-scottlogic Oct 7, 2024
5b3caa8
Merge pull request #96 from WaitThatShouldntWork/feature/update-readme
mnyamunda-scottlogic Oct 7, 2024
01c8f70
Pushing the current changes
Oct 16, 2024
3ca19c1
Removed loggers
Oct 16, 2024
84dcf74
Fixed the broken unit tests.
Oct 17, 2024
9dc4373
fixed linting error
Oct 17, 2024
46e26db
Changes to make COnversation-history file to be exact.
Oct 17, 2024
4a72ccd
Webpack changes
Oct 17, 2024
713fc17
Pushing the Maths changes
Oct 17, 2024
ae05181
resolving linting error
Oct 17, 2024
52125d7
Changes suggested by Helene
Oct 18, 2024
8aeccdc
Fixed failed unit ntests
Oct 18, 2024
70524a8
Merge pull request #97 from WaitThatShouldntWork/feature/accurate-ret…
gaganahluwalia Oct 18, 2024
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
Prev Previous commit
Next Next commit
Make cache global to prevent UnboundLocalError
hsauve-scottlogic committed Sep 2, 2024
commit 33c02e93ff575c511746809ae5c24fe3eeac7db4
8 changes: 5 additions & 3 deletions backend/src/agents/datastore_agent.py
Original file line number Diff line number Diff line change
@@ -53,12 +53,14 @@
async def generate_query(
question_intent, operation, question_params, aggregation, sort_order, timeframe, llm: LLM, model
) -> str:

async def get_semantic_layer_cache(graph_schema):
global cache
if not cache:
graph_schema = await get_semantic_layer(llm, model)
cache['nodes'] = graph_schema['nodes']
cache['properties'] = graph_schema['properties']
cache['relationships'] = graph_schema['relationships']
cache = graph_schema
return cache
else:
return cache

details_to_create_cypher_query = engine.load_prompt(