Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change propaganda content of @nestia/chat #1212

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/chat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nestia/chat",
"version": "0.3.9",
"version": "0.3.10",
"type": "module",
"main": "./lib/index.mjs",
"typings": "./lib/index.d.ts",
Expand Down
11 changes: 5 additions & 6 deletions packages/chat/src/examples/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ const Section = (props: {
}) => (
<ListItem alignItems="flex-start">
<ListItemButton href={props.href}>
<ListItemAvatar>
<FeaturedPlayListIcon />
</ListItemAvatar>
<ListItemAvatar>{props.icon}</ListItemAvatar>
<ListItemText
primary={props.title}
secondary={
Expand Down Expand Up @@ -78,9 +76,10 @@ const Application = () => {
</p>
<p>
This example project has been developed to prove a key concept
of <code>nestia/agent</code> that every backen servers providing
Swagger documents can be conversed with the A.I. chatbot. You
can search products, and take orders just by conversation texts.
of <code>nestia/agent</code> that every backend servers
providing Swagger documents can be conversed with the A.I.
chatbot. You can search products, and take orders just by
conversation texts.
</p>
<p>
If you've developed a backend server, then you can chat with the
Expand Down
10 changes: 5 additions & 5 deletions website/pages/docs/swagger/chat.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ import { Callout, Tabs } from 'nextra/components'

The above demonstration video shows Shopping A.I. chatbot built with Nestia.

As you can see, just by delivering only swagger document of the shopping backend server, the shopping A.I. chatbot automatically composed. And in the Shopping A.I. chatbot, the user can search products, and take orders just by conversation texts.
As you can see, in the Shopping A.I. chatbot application, the user can do everything written in the Swagger documents just by conversation texts. Searching products, taking orders, checking delivery status, user can do these things by chatting texts.

No special coding and configuration required. Just deliver your swagger document. Then you can start conversation with your backend server performing the LLM (Large Language Model) function calling. The super A.I. chatbot selects proper functions defined in the swagger document by analyzing conversation contexts with user. And then the super A.I. chatbot requests the user to write arguments for the selected functions by conversation text, and actually calls the API function with the arguments.
Just by delivering the Swagger document, Super A.I. chatbot performing the LLM (Large Language Model) function calling is automatically commposed. The Super A.I. chatbot will select proper functions defined in the Swagger document by analyzing conversation contexts with the user. And then Super A.I. chatbot requests the user to write arguments for the selected functions by connversation text, and actually calls the API function with the argument. This is the key concept of the Nestia A.I. chatbot.loc

If the swagger file you provide contains enough and reasonable level of functions, DTO schemas, and descriptions, everything is ready. Just put the swagger file to the Nestia A.I. Chatbot, you can start conversation with your backend server calling the API functions by chatting text.
In other words, every backend servers providing Swagger documents can be conversed to the A.I. chatbot. In the new A.I. era, you don't need to develop GUI (Graphical User Interface) application more. Just prepare swagger document, and let the A.I. chatbot to do the rest. The A.I. chatbot can replace your new GUI application, and it can be more efficient and user-friendly than the traditional GUI applications.



Expand All @@ -30,7 +30,7 @@ If the swagger file you provide contains enough and reasonable level of function

You can test your backend server's A.I. chatbot with the following playground.

Upload your Swagger document file to the [playground website](https://nestia.io/chat/playground), and start conversation with your backend server. If your backend server's documentation is well written so that the A.I. chatbot quality is satisfiable, you can start your own A.I. chatbot service from the next section [**Application Setup**](#application-setup).
Upload your Swagger document file to the [playground website](https://nestia.io/chat/playground), and start conversation with your backend server. If your backend server's documentation is well written so that the A.I. chatbot quality is satisfiable, you can start your own A.I. chatbot service from the next section [#Application Setup](#application-setup).



Expand Down Expand Up @@ -61,7 +61,7 @@ Install `@nestia/chat` and its dependencies.
- `@samchon/openapi`
- `openai`

To make the super A.I. chatbot, you need to install the above libraries. All of them except `@nestia/chat` are in the dependencies of the `@nestia/chat`, but it would better to install them explicitly for the safe frontend application development.
To make the Super A.I. chatbot, you need to install the above libraries. All of them except `@nestia/chat` are in the dependencies of the `@nestia/chat`, but it would better to install them explicitly for the safe frontend application development.

```typescript filename="src/ShoppingChatApplication.tsx" showLineNumbers {20-27, 59}
import { NestiaAgent } from "@nestia/agent";
Expand Down