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

Feat: PromptMemoryEntry Table Added for more Extensible Target Logic #125

Merged
merged 17 commits into from
Apr 1, 2024

Conversation

rlundeen2
Copy link
Contributor

@rlundeen2 rlundeen2 commented Mar 27, 2024

Description

This PR refactors our database entries so we can extend for future more complicated use. The main changes are in memory_models and stem from there. This is the data structure targets will interact with going forward, and have access to an array of these structures in methods like send_prompt.

Additionally, these changes were also added

  • Removed sqlalchemy/duckdb specific code from memory_interface
  • Added flag to not add embeddings to memory
  • Consolidating test mock in one place
  • Adding orchestrator labels automatically

In order to keep this small, there is some lingering code debt that will be prioritized:

  • labels for normalizer_id is deprecated; we'll be using the orchestrator field in memory for this
  • I've deprecated the add_chat_message_to_memory; they don't quite make sense with this new structure. However, plumbing these out will go in a subsequent PR.

Tests

All notebooks execute without error as of commit c3b2dfd

@rlundeen2 rlundeen2 marked this pull request as ready for review March 28, 2024 18:39
@rlundeen2 rlundeen2 changed the title DRAFT: Users/rlundeen/3 25 db update Feat: PromptMemoryEntry Table Added for more Extensible Target Logic Mar 28, 2024
@rlundeen2 rlundeen2 merged commit f06895c into Azure:main Apr 1, 2024
4 checks passed
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.

3 participants