This is a Near Protocol Hackathon Project for year 2023, delivered by Meteor Wallet team.
- Please install and make sure docker is running.
- Run
yarn dev
- You can make more tools for the AI to use in
llm/tools
- You can add more features in the frontend in
app
- You can add a new file inside
llm/tools
folder, export a const which is an interface ofTool
- The
chatCompletionTools
is a name, description, and schema for your tools, so that the AI knows what your tools is for. - The
handler
is the implementation of the tools. - To test the code, use postman or other similar tools to call
{{url}}/api/playground
, with the following body: (raw, json)
{
"functionName": "yourFunctionName",
"params": {
"key": "value"
}
}
- Please refer to [https://nextjs.org/](nextjs website)
- And refer to [https://react.dev/](reactjs website)
- We can check cookie
- We can save and fetch from database
- We can interact with any API
- We can interact with Near Protocol Blockchain
- We can also return a static value
- Try to predict what user will try to ask, then design a tool to help Myra to tackle that person
- Treat Myra as a human. She is definitely a human because she can pass turing test.
- So be kind when Myra can't understand or refuse to use your tools.
- Instead of scolding Myra, try to rephrase your description about what your tools is.
- We will host a server to record down all the user's chat into the database
- While we are recording it down, we are also parsing the meaning of the user's chat intention by using
text-embedding
(an LLM technique) - We will store the user's chat into two database, one into relational database such as "mysql", another one into
vector database
- Once we have enough user asking enough amount of question, we can know what is the
frequently asked question
by user - Then we can keep on implementing more and more
Tool
to improve our API.