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

Removes as_chain #167

Merged
merged 4 commits into from
Sep 11, 2024
Merged

Removes as_chain #167

merged 4 commits into from
Sep 11, 2024

Conversation

filipeximenes
Copy link
Contributor

@filipeximenes filipeximenes commented Sep 11, 2024

  • Removes the as_chain method
  • Removes references to chain in docs
  • Removes unused methods
  • Updates RAG docs since adding a context placeholder to the instructions is not needed anymore
  • Updates RAG tests

@filipeximenes filipeximenes requested a review from fjsj September 11, 2024 20:18
@@ -464,15 +388,23 @@ def as_graph(self, thread_id: Any | None = None) -> Runnable[dict, dict]:
Returns:
the compiled graph
"""
# DjangoChatMessageHistory must be here because Django may not be loaded yet elsewhere.
# DjangoChatMessageHistory was used in the context of langchain, now that we are using
# langgraph this can be further simplified by just porting the add_messages logic.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this tracked? So we don't need the DjangoChatMessageHistory wrapper anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it seems like it could be replaced by one simple method that retrieves the message history and another that adds new ones. I created an issue for this #169

docs/tutorial.md Outdated Show resolved Hide resolved
@filipeximenes filipeximenes requested a review from fjsj September 11, 2024 20:55
@fjsj fjsj merged commit 81d0ff6 into main Sep 11, 2024
18 checks passed
@fjsj fjsj deleted the remove-aschain branch September 11, 2024 21:02
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.

2 participants