You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-4
Original file line number
Diff line number
Diff line change
@@ -23,18 +23,22 @@ This template is an example project for a simple Large Language Model (LLM) appl
23
23
24
24
To get started, follow the below steps:
25
25
26
-
1. Create an `.env` file by copying the `SAMPLE_env` file and add API keys for the models you are going to use
26
+
1. Create an `.env` file by copying the `SAMPLE_env` file and add the model store provider you'll be using (e.g. HuggingFace or OpenAI) and the API keys for the models you are going to use
27
27
1. Install packages
28
28
1. Run the backend server that will start with a default port of `3100`
29
+
29
30
```bash
30
31
yarn start-server
31
32
```
33
+
32
34
1. Run the frontend server that will start with a default port of `5173`.
35
+
33
36
```bash
34
37
yarn start
35
38
```
36
-
39
+
37
40
_Note:_ You can use the `-p` flag to specify a port for the frontend server. To do this, you can either run `yarn start` with an additional flag, like so:
41
+
38
42
```bash
39
43
yarn start -- --port 3000
40
44
```
@@ -44,15 +48,26 @@ To get started, follow the below steps:
44
48
```bash
45
49
vite --port 3000
46
50
```
47
-
51
+
48
52
Additional scripts are provided to prepare the app for production
53
+
49
54
- `yarn build` — This will output a production build of the frontend app in the `dist` directory.
50
55
- `yarn preview` — This will run the production build of the frontend app locally with a default port of `5173` (_note_: this will not work if you haven't generated the production build yet).
51
56
57
+
### Tutorials
52
58
53
59
👽 If you're looking for more thorough instructions follow [this tutorial on running an LLM React Node app](https://blog.golivecosmos.com/build-an-llm-app-with-node-react-and-langchain-js/). 📚
54
60
55
61
-------------
56
62
57
-
## Shout out to the ⭐star gazers⭐ supporting the project
63
+
## How to Contribute
64
+
65
+
Feel free to try out the template and open any issues if there's something you'd like to see added or fixed, or open a pull request to contribute.
66
+
67
+
### Shout out to the ⭐star gazers⭐ supporting the project
68
+
58
69
[](https://github.com/golivecosmos/llm-react-node-app-template/stargazers)
70
+
71
+
### Thanks for the forks🍴
72
+
73
+
[](https://github.com/golivecosmos/llm-react-node-app-template/network/members)
SystemMessagePromptTemplate.fromTemplate('The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.'),
SystemMessagePromptTemplate.fromTemplate('The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know.'),
0 commit comments