Skip to content

Commit

Permalink
updated demo
Browse files Browse the repository at this point in the history
  • Loading branch information
sreyakumar committed Oct 16, 2024
1 parent e57bed6 commit 145c5d6
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 72 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
chatbot.ipynb
*.pkl
*.png
queries.txt

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
70 changes: 38 additions & 32 deletions GAMER_workbook.ipynb

Large diffs are not rendered by default.

34 changes: 0 additions & 34 deletions demo.ipynb

This file was deleted.

3 changes: 2 additions & 1 deletion src/metadata_chatbot/agents/GAMER.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def _llm_type(self) -> str:
"""Get the type of language model used by this chat model. Used for logging purposes only."""
return "Claude 3 Sonnet"


# llm = GAMER()
# print(llm.invoke("Can you give me a timeline of events for subject 675387?"))

# async def main():
# result = await llm.ainvoke("Can you give me a timeline of events for subject 675387?")
Expand Down
4 changes: 2 additions & 2 deletions src/metadata_chatbot/agents/async_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ async def generate_async(state):
async_app = async_workflow.compile()

# async def main():
# query = "What was the age of the subject when receiving injections in asset SmartSPIM_675388_2023-05-24_04-10-19_stitched_2023-05-28_18-07-46?"
# query = "Can you give me a timeline of events for subject 675387?"
# inputs = {"query": query}
# result = async_app.astream(inputs)

Expand All @@ -203,5 +203,5 @@ async def generate_async(state):
# if value:
# print(value['generation'])

# # Run the async function
# #Run the async function
# asyncio.run(main())
2 changes: 1 addition & 1 deletion src/metadata_chatbot/agents/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def generate(state):

app = workflow.compile()

# query = "How old was the subject in SmartSPIM_675388_2023-05-24_04-10-19_stitched_2023-05-28_18-07-46"
# query = "Give me the names of 5 assets have injections and are smartspim?"

# inputs = {"query" : query}
# answer = app.invoke(inputs)
Expand Down
3 changes: 1 addition & 2 deletions src/metadata_chatbot/bedrock_model/ref/session_schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{

{
"additionalProperties": false,
"description": "Description of a physiology and/or behavior session",
"properties": {
Expand Down

0 comments on commit 145c5d6

Please sign in to comment.