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

132 smart memory management #142

Closed
wants to merge 204 commits into from

Conversation

minump
Copy link

@minump minump commented Nov 13, 2023

The PlanAndExecute agent has a callback to memorycallbacks.py class. The set callbacks have supabase update and insert commands. However, the supabase table ('docker_images') is not being populated.

KastanDay and others added 30 commits August 14, 2023 11:29
* initial work on split and upload for Supabase SQL redesign

* Added changes to supabase calls due to new incoming formatting with the database

* changed url metadata in py_ingest function from str to None

* full implementatino of parallel embeddings + bulk upload to qdrant

* format ONLY, nothing more

* errors in split and upload and embeddings

* fully working code for the new Supabase SQL refactor

* changed the env variable name back to normal name, and also made sure that everything is working, this is final push for new supabase

* some of the previous changes were erased when I Pushed and it was breaking, so I added it all back in and now it should be working fine

* added url and baseurl to all metadatas

* made minor adjustments getenv variables and baseurl to fix bugs

* fixed bug with split and upload and fixed supabase table as well

* all functions now work with new database changes

* got rid of ingest_single_html function

* minor fix to optional metadata properties

---------

Co-authored-by: jkmin3 <[email protected]>
Co-authored-by: Joshua K Min <[email protected]>
* printing

* Should fix all getTopContext errors, and use best practices in Flask API optional params
@minump
Copy link
Author

minump commented Jan 23, 2024

Closing this issue as the team decided to experiment with langgraph (https://python.langchain.com/docs/langgraph)
Langgraph will enable more control over agent flow by keeping track of agent states (Eg : https://github.com/langchain-ai/langgraph/blob/main/examples/chat_agent_executor_with_function_calling/managing-agent-steps.ipynb) . Utilizing langgraph will also dispose off the use of supabase as agent messages can be tracked within the states.
In the example jupyter notebook (https://github.com/langchain-ai/langgraph/blob/main/examples/chat_agent_executor_with_function_calling/managing-agent-steps.ipynb) , the call_tool() method (cell 8) can be changed to add smart memory functionality by calling the memory function before the return command.

The team decided to first log/capture all agent messages using langgraph, manage the agent using states and then work on smart memory management. The code will be in the 'langgraph' branch (https://github.com/UIUC-Chatbot/ai-ta-backend/tree/langgraph)

@minump minump closed this Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement a smart memory management
5 participants