mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 19:39:58 +00:00
remove CVEs (#8092)
This PR aims to move all code with CVEs into `langchain.experimental`. Note that we are NOT yet removing from the core `langchain` package - we will give people a week to migrate here. See MIGRATE.md for how to migrate Zero changes to functionality Vulnerabilities this addresses: PALChain: - https://security.snyk.io/vuln/SNYK-PYTHON-LANGCHAIN-5752409 - https://security.snyk.io/vuln/SNYK-PYTHON-LANGCHAIN-5759265 SQLDatabaseChain - https://security.snyk.io/vuln/SNYK-PYTHON-LANGCHAIN-5759268 `load_prompt` (Python files only) - https://security.snyk.io/vuln/SNYK-PYTHON-LANGCHAIN-5725807
This commit is contained in:
@@ -1,59 +0,0 @@
|
||||
# flake8: noqa E501
|
||||
|
||||
# fmt: off
|
||||
template = (
|
||||
"""
|
||||
Transform the hypothetical whatif statement into JSON. Don't guess at any of the parts. Write NONE if you are unsure.
|
||||
|
||||
{format_instructions}
|
||||
|
||||
|
||||
|
||||
statement: if cindy's pet count was 4
|
||||
|
||||
|
||||
|
||||
|
||||
# JSON:
|
||||
|
||||
|
||||
|
||||
{{
|
||||
"entity_settings" : [
|
||||
{{ "name": "cindy", "attribute": "pet_count", "value": "4" }}
|
||||
]
|
||||
}}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
statement: Let's say boris has ten dollars and Bill has 20 dollars.
|
||||
|
||||
|
||||
|
||||
|
||||
# JSON:
|
||||
|
||||
|
||||
{{
|
||||
"entity_settings" : [
|
||||
{{ "name": "boris", "attribute": "dollars", "value": "10" }},
|
||||
{{ "name": "bill", "attribute": "dollars", "value": "20" }}
|
||||
]
|
||||
}}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Statement: {narrative_input}
|
||||
|
||||
|
||||
|
||||
|
||||
# JSON:
|
||||
""".strip()
|
||||
+ "\n\n\n"
|
||||
)
|
||||
# fmt: on
|
Reference in New Issue
Block a user