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

core: improve comma separated list output parser to handle non-space separated list #20434

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

anish749
Copy link
Contributor

  • Description: Changes lanchain_core.output_parsers.CommaSeparatedListOutputParser to handle , as a delimiter alongside the previous implementation which used , as delimiter.
  • Issue: Started noticing that some results returned by LLMs were not getting parsed correctly when the output contained , instead of , .
  • Dependencies: No
  • Twitter handle: not active on twitter.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Apr 14, 2024
Copy link

vercel bot commented Apr 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
langchain ⬜️ Ignored (Inspect) Visit Preview Apr 25, 2024 8:04pm

@dosubot dosubot bot added Ɑ: parsing Related to output parser module 🤖:improvement Medium size change to existing code to handle new use-cases labels Apr 14, 2024
@anish749
Copy link
Contributor Author

hey @efriis, not sure if you are the right person, do you think this change is a good idea, or would you know who would be the right person for a review?

@anish749 anish749 force-pushed the improve-list-output-parser branch from 894c697 to ae8a272 Compare April 20, 2024 07:42
@anish749
Copy link
Contributor Author

ping @efriis @baskaryan

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Apr 25, 2024
@baskaryan baskaryan enabled auto-merge (squash) April 25, 2024 20:04
@baskaryan baskaryan merged commit 898362d into langchain-ai:master Apr 25, 2024
96 checks passed
hinthornw pushed a commit that referenced this pull request Apr 26, 2024
…-space separated list (#20434)

- **Description:** Changes
`lanchain_core.output_parsers.CommaSeparatedListOutputParser` to handle
`,` as a delimiter alongside the previous implementation which used `, `
as delimiter.
- **Issue:** Started noticing that some results returned by LLMs were
not getting parsed correctly when the output contained `,` instead of `,
`.
  - **Dependencies:** No
  - **Twitter handle:** not active on twitter.


<!---
If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, hwchase17.
-->
pprados pushed a commit to pprados/langchain that referenced this pull request Apr 26, 2024
…-space separated list (langchain-ai#20434)

- **Description:** Changes
`lanchain_core.output_parsers.CommaSeparatedListOutputParser` to handle
`,` as a delimiter alongside the previous implementation which used `, `
as delimiter.
- **Issue:** Started noticing that some results returned by LLMs were
not getting parsed correctly when the output contained `,` instead of `,
`.
  - **Dependencies:** No
  - **Twitter handle:** not active on twitter.


<!---
If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, hwchase17.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:improvement Medium size change to existing code to handle new use-cases lgtm PR looks good. Use to confirm that a PR is ready for merging. Ɑ: parsing Related to output parser module size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants