-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
87 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
templates/components/agents/typescript/financial_report/README-template.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
This is a [LlamaIndex](https://www.llamaindex.ai/) project using [Next.js](https://nextjs.org/) bootstrapped with [`create-llama`](https://github.com/run-llama/LlamaIndexTS/tree/main/packages/create-llama). | ||
|
||
## Getting Started | ||
|
||
First, install the dependencies: | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
Then check the parameters that have been pre-configured in the `.env` file in this directory. | ||
Make sure you have the `OPENAI_API_KEY` set. | ||
|
||
Second, generate the embeddings of the documents in the `./data` directory: | ||
|
||
``` | ||
npm run generate | ||
``` | ||
|
||
Third, run the development server: | ||
|
||
``` | ||
npm run dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the chat UI. | ||
|
||
## Use Case: Filling Financial CSV Template | ||
|
||
You can start by sending an request on the chat UI to create a report comparing the finances of Apple and Tesla. | ||
Or you can test the `/api/chat` endpoint with the following curl request: | ||
|
||
``` | ||
curl --location 'localhost:3000/api/chat' \ | ||
--header 'Content-Type: application/json' \ | ||
--data '{ "messages": [{ "role": "user", "content": "Create a report comparing the finances of Apple and Tesla" }] }' | ||
``` | ||
|
||
## Learn More | ||
|
||
To learn more about LlamaIndex, take a look at the following resources: | ||
|
||
- [LlamaIndex Documentation](https://docs.llamaindex.ai) - learn about LlamaIndex. | ||
- [Workflows Introduction](https://docs.llamaindex.ai/en/stable/understanding/workflows/) - learn about LlamaIndex workflows. | ||
|
||
You can check out [the LlamaIndex GitHub repository](https://github.com/run-llama/llama_index) - your feedback and contributions are welcome! |
36 changes: 36 additions & 0 deletions
36
templates/components/agents/typescript/form_filling/README-template.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
This is a [LlamaIndex](https://www.llamaindex.ai/) project using [Next.js](https://nextjs.org/) bootstrapped with [`create-llama`](https://github.com/run-llama/LlamaIndexTS/tree/main/packages/create-llama). | ||
|
||
## Getting Started | ||
|
||
First, install the dependencies: | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
Then check the parameters that have been pre-configured in the `.env` file in this directory. | ||
Make sure you have the `OPENAI_API_KEY` set. | ||
|
||
Second, run the development server: | ||
|
||
``` | ||
npm run dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the chat UI. | ||
|
||
## Use Case: Filling Financial CSV Template | ||
|
||
1. Upload the Apple and Tesla financial reports from the [data](./data) directory. Just send an empty message. | ||
2. Upload the CSV file [sec_10k_template.csv](./sec_10k_template.csv) and send the message "Fill the missing cells in the CSV file". | ||
|
||
The agent will fill the missing cells by retrieving the information from the uploaded financial reports and return a new CSV file with the filled cells. | ||
|
||
## Learn More | ||
|
||
To learn more about LlamaIndex, take a look at the following resources: | ||
|
||
- [LlamaIndex Documentation](https://docs.llamaindex.ai) - learn about LlamaIndex. | ||
- [Workflows Introduction](https://docs.llamaindex.ai/en/stable/understanding/workflows/) - learn about LlamaIndex workflows. | ||
|
||
You can check out [the LlamaIndex GitHub repository](https://github.com/run-llama/llama_index) - your feedback and contributions are welcome! |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters