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: docs/advanced/chat_functions/info.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# AI Chatbots - More information
2
2
3
-
Chatbot agents are AI Assistants that students can chat with to ask for help or further explanations regarding the Question that they are working on. Each Agent has its own personality and approach to assisting the students.
3
+
Chatbots are LLM assistants that students can chat with to ask for help or further explanations regarding the Question that they are working on. Each chatbot has its own personality and approach to assisting the students.
4
4
5
5
The Chatbots have at their basis a [Large Language Model (LLM)](https://en.wikipedia.org/wiki/Large_language_model) which received information regarding:
6
6
@@ -30,4 +30,4 @@ Click on the links below for information on each chatbot:
30
30
31
31
## AI Chatbot Development
32
32
33
-
Are you interested in developing your own chatbot? Then please check out the [Quickstart guide](quickstart.md) to develop and deploy your own AI chat agent for Lambda Feedback.
33
+
Are you interested in developing your own chatbot? Then check out the [Quickstart guide](quickstart.md) to develop and deploy your own AI chat function for Lambda Feedback.
Copy file name to clipboardExpand all lines: docs/advanced/chat_functions/local.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,19 @@
1
-
# Running and Testing Agents Locally
1
+
# Running and Testing Chat function Locally
2
2
3
-
You can run the Python function for your agent itself by writing a `main()` function, or you can call the [`testbench_prompts.py`](https://github.com/lambda-feedback/lambda-chat/blob/main/src/agents/utils/testbench_prompts.py) script that runs a similar pipeline to the `module.py`.
3
+
You can run the Python function for your chat function itself by writing a `main()` function, or you can call the [`testbench_prompts.py`](https://github.com/lambda-feedback/lambda-chat/blob/main/src/agents/utils/testbench_prompts.py) script that runs a similar pipeline to the `module.py`.
4
4
5
5
```bash
6
6
python src/agents/utils/testbench_prompts.py
7
7
```
8
8
9
-
You can also use the `test_prompts.py` script to test the agents with example inputs from Lambda Feedback questions and synthetic conversations.
9
+
You can also use the `test_prompts.py` script to test the chat function with example inputs from Lambda Feedback questions and synthetic conversations.
10
10
```bash
11
11
python src/agents/utils/test_prompts.py
12
12
```
13
13
14
14
## Testing using the Docker Image [:material-docker:](https://www.docker.com/)
15
15
16
-
You can also build and run the docker pipeline for the agents. The chatbot agents are deployed onto a AWS Lambda serverless cloud function using the docker image. Hence, for final testing of your chatbots, we recommend completing those steps.
16
+
You can also build and run the docker pipeline for the chat function. The chatbot associated with the chat function is deployed onto a AWS Lambda serverless cloud function using the docker image. Hence, for final testing of your chatbot, we recommend completing those steps.
Copy file name to clipboardExpand all lines: docs/advanced/chat_functions/quickstart.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ It's a function which calls Large Language Models (LLMs) to respond to the stude
7
7
- question data
8
8
- user data such as past responses to the problem
9
9
10
-
Chat functions host a chatbot agent. Chatbot Agents capture and automate the process of assisting students during their learning process when outside of classroom.
10
+
Chat functions host a chatbot. Chatbots capture and automate the process of assisting students during their learning process when outside of classroom.
11
11
12
12
## Getting Setup for Development
13
13
@@ -16,12 +16,12 @@ Chat functions host a chatbot agent. Chatbot Agents capture and automate the pro
16
16
- For new functions: clone the template repo for [chat-function-boilerplate](https://github.com/lambda-feedback/chat-function-boilerplate). **Make sure the new repository is set to public (it needs access to organisation secrets)**.
17
17
- For existing functions: please make your changes on a new separate branch
18
18
19
-
2._If you are creating a new chatbot agent_, can either edit the `scr/agents/base_agent` or copy it and rename it based on your agent's name.
19
+
2._If you are creating a new chatbot_, you can either edit the `scr/agents/base_agent` or copy it and rename it based on your chatbot's name.
20
20
3. You are now ready to start making changes and implementing features by editing each of the main function-logic files:
21
21
22
22
1. **`scr/agents/{base_agent}/{base}_agent.py`**: This file contains the main LLM pipeline using [LangGraph](https://langchain-ai.github.io/langgraph/) and [LangChain](https://python.langchain.com/docs/introduction/).
23
23
24
-
- the agent expects the following inputs when it being called:
24
+
- the chatbot expects the following inputs when it being called:
25
25
26
26
Body with necessary Params:
27
27
@@ -54,17 +54,17 @@ Chat functions host a chatbot agent. Chatbot Agents capture and automate the pro
54
54
55
55
2.**`scr/agents/{base_agent}/{base}_prompts.py`**: This is where you can write the system prompts that describe how your AI Assistant should behave and respond to the user.
56
56
57
-
3._If you edited the agent file name_, make sure to add your agent`invoke()` function to the `module.py` file.
57
+
3._If you edited the chatbot agent file name_, make sure to add your chatbot`invoke()` function to the `module.py` file.
58
58
59
59
4. Update the `config.json` file with the chatbot's name.
60
60
61
-
5. Please add a `README.md` file to describe the use and behaviour of your agent.
61
+
5. Please add a `README.md` file to describe the use and behaviour of your chatbot.
62
62
63
63
4. Changes can be tested locally by running the pipeline tests using:
64
64
```bash
65
65
pytest src/module_test.py
66
66
```
67
-
[Running and Testing Agents Locally](local.md){ .md-button }
67
+
[Running and Testing Chat Functions Locally](local.md){ .md-button }
68
68
69
69
70
70
5. Merge commits into dev branch will trigger the `dev.yml` workflow, which will build the docker image, push it to a shared `dev` ECR repository and deploy an AWS Lambda function for the `dev` client app to call. In order to make your new chatbot available on the `dev` environment of the Lambda Feedback platform, you will have to get in contact with the ADMINS on the platform.
@@ -90,6 +90,6 @@ Chat functions host a chatbot agent. Chatbot Agents capture and automate the pro
90
90
}
91
91
}'
92
92
93
-
6. Once the `dev`chatbot is fully tested, you can merge the code to the default branch (`main`). This will trigger the `main.yml` workflow, which will deploy the `staging` and `prod` versions of your chatbot. Please contact the ADMIN to provide the URLS for the `staging` and `prod` versions of your agent.
93
+
6. Once the `dev`chat function is fully tested, you can merge the code to the default branch (`main`). This will trigger the `main.yml` workflow, which will deploy the `staging` and `prod` versions of your chat function. Please contact the ADMIN to provide the URLS for the `staging` and `prod` versions of your chat function.
94
94
95
-
6. In order to make your new chatbot available on any of the environments of the Lambda Feedback platform, you will have to get in contact with the ADMINS on the platform.
95
+
6. In order to make your new chat function available on any of the environments of the Lambda Feedback platform, you will have to get in contact with the ADMINS on the platform.
All microservices are called over http. There is complete freedom in their implementation. Lambda Feedback also provides families of deployed microservices, using open source code available in our public GitHub repositories.
Copy file name to clipboardExpand all lines: docs/student/getting_started_student.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ A pane where you can write down your thought process and notes for the previewed
45
45

46
46
47
47
#### Chat:
48
-
A chat interface connecting you with helpful Chatbots. Chatbot agents are AI Assistants that you can chat with to ask for help or further explanations regarding the Question that you are working on.
48
+
A chat interface connecting you with helpful Chatbots. The Chatbots are AI Assistants that you can chat with to ask for help or further explanations regarding the Question that you are working on.
0 commit comments