Skip to content

Instantly share code, notes, and snippets.

@kkdev163
kkdev163 / prompt.txt
Created November 15, 2023 06:01
LangChain 背后的魔法咒语
Answer the following questions truthfully and as best you can.
You have access to the following tools.
You must format your inputs to these tools to match their "JSON schema" definitions below.
"JSON Schema" is a declarative language that allows you to annotate and validate JSON documents.
For example, the example "JSON Schema" instance {"properties": {"foo": {"description": "a list of test words", "type": "array", "items": {"type": "string"}}}, "required": ["foo"]}}
would match an object with one required property, "foo". The "type" property specifies "foo" must be an "array", and the "description" property semantically describes it as "a list of test words". The items within "foo" must be strings.
Thus, the object {"foo": ["bar", "baz"]} is a well-formatted instance of this example "JSON Schema". The object {"properties": {"foo": ["bar", "baz"]}} is not well-formatted.
@kkdev163
kkdev163 / hello.js
Created October 30, 2018 06:42
helloworld
console.log('hello world')