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

Bye langchain 😢 #35

Merged
merged 48 commits into from
Oct 2, 2024
Merged

Bye langchain 😢 #35

merged 48 commits into from
Oct 2, 2024

Conversation

ThibaultLSDC
Copy link
Collaborator

Removing most langchain bits from the codebase

Base automatically changed from tracking to main September 20, 2024 20:30
@gasse gasse changed the title Bye langchain Bye langchain 😢 Sep 20, 2024
@ThibaultLSDC ThibaultLSDC marked this pull request as ready for review September 26, 2024 14:40
)


# def _convert_messages_to_dict(messages, column_remap={}):
Copy link
Collaborator

Choose a reason for hiding this comment

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

delete old code?

Copy link
Collaborator

@recursix recursix left a comment

Choose a reason for hiding this comment

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

minor comments to address

self.chat_llm,
chat_messages,
n_retry=self.max_retry,
parser=main_prompt._parse_answer,
)
# inferring the number of retries, TODO: make this less hacky
stats["n_retry"] = (len(chat_messages) - 3) / 2
stats["busted_retry"] = 0
except RetryError as e:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@recursix i'm not sure how to deal with errors now that ParsingErrors and RetryErrors are raised differently.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you need to do anything.

self.chat_llm,
chat_messages,
n_retry=self.max_retry,
parser=main_prompt._parse_answer,
)
# inferring the number of retries, TODO: make this less hacky
stats["n_retry"] = (len(chat_messages) - 3) / 2
stats["busted_retry"] = 0
except RetryError as e:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think you need to do anything.

@recursix recursix merged commit 8f6dc83 into main Oct 2, 2024
2 checks passed
@recursix recursix deleted the bye_langchain branch October 2, 2024 20:04
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