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

Use client from LCP-SDK #5695

Merged
merged 5 commits into from
Jun 6, 2023
Merged

Use client from LCP-SDK #5695

merged 5 commits into from
Jun 6, 2023

Conversation

vowelparrot
Copy link
Contributor

@vowelparrot vowelparrot commented Jun 4, 2023

  • Remove the client implementation (this breaks backwards compatibility for existing testers. I could keep the stub in that file if we want, but not many people are using it yet
  • Add SDK as dependency
  • Update the 'run_on_dataset' method to be a function that optionally accepts a client as an argument
  • Remove the langchain plus server implementation (you get it for free with the SDK now)

We could make the SDK optional for now, but the plan is to use w/in the tracer so it would likely become a hard dependency at some point.

return f"{dataset_name}-{model_name}-{current_time}"


async def arun_on_dataset(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not a 1-way door, but current PR just exposes these as functions rather than extending the Client. Choice is whether the syntactic sugar of client.run_on_dataset() instead of run_on_dataset(optional client) is more useful than it is confusing (confusing here in that the client has diff methods depending on how you import)

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think either is fine tbh

@vowelparrot vowelparrot requested a review from agola11 June 5, 2023 21:05
Copy link
Collaborator

@agola11 agola11 left a comment

Choose a reason for hiding this comment

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

gotta love a good red diff

return f"{dataset_name}-{model_name}-{current_time}"


async def arun_on_dataset(
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think either is fine tbh

@vowelparrot vowelparrot merged commit 204a73c into master Jun 6, 2023
12 checks passed
@vowelparrot vowelparrot deleted the vwp/invert branch June 6, 2023 13:51
Undertone0809 pushed a commit to Undertone0809/langchain that referenced this pull request Jun 19, 2023
- Remove the client implementation (this breaks backwards compatibility
for existing testers. I could keep the stub in that file if we want, but
not many people are using it yet
- Add SDK as dependency
- Update the 'run_on_dataset' method to be a function that optionally
accepts a client as an argument
- Remove the langchain plus server implementation (you get it for free
with the SDK now)

We could make the SDK optional for now, but the plan is to use w/in the
tracer so it would likely become a hard dependency at some point.
This was referenced Jun 25, 2023
kacperlukawski pushed a commit to kacperlukawski/langchain that referenced this pull request Jun 29, 2023
- Remove the client implementation (this breaks backwards compatibility
for existing testers. I could keep the stub in that file if we want, but
not many people are using it yet
- Add SDK as dependency
- Update the 'run_on_dataset' method to be a function that optionally
accepts a client as an argument
- Remove the langchain plus server implementation (you get it for free
with the SDK now)

We could make the SDK optional for now, but the plan is to use w/in the
tracer so it would likely become a hard dependency at some point.
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.

None yet

2 participants