https://github.com/ecomfe/deep-grasp
A toolkit for adopting LLM into your existing app.
https://github.com/ecomfe/deep-grasp
Last synced: 11 months ago
JSON representation
A toolkit for adopting LLM into your existing app.
- Host: GitHub
- URL: https://github.com/ecomfe/deep-grasp
- Owner: ecomfe
- License: mit
- Created: 2023-11-07T02:16:21.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-01T13:06:01.000Z (over 2 years ago)
- Last Synced: 2025-05-25T08:05:14.647Z (about 1 year ago)
- Language: TypeScript
- Size: 420 KB
- Stars: 11
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Deep Grasp
The goal of this project is to seamlessly integrate LLM into your current app. This means that users can retrieve and interact with a specific part of the user interface using natural language, without any intrusive measures.
> [!NOTE]
> This repo is still under heavy development, we welcome any idea and feedback.
## What is it
In the age of AI, we see increasing trend to adopt LLM into web applications, but for a large real world app, it is usually not easy to integrate AI feature into thousands lines of code.
Deep Grasp, aimed to non-intrusive integration to LLM, is able to do more by less code, as an example, we simply change a little code like:
```diff
+import {graspable} from '@deep-grasp/react';
+
-export default function Clock({timezone}: Props) {
+function Clock({timezone}: Props) {
// ...
}
+export default graspable(Clock, 'View clock in specified timezone');
```
As a result, we can get smooth and easy to use LLM features, a decorated component can be created and rendered automatically from user's natural language query.
https://github.com/ecomfe/deep-grasp/assets/639549/32fe1dfb-400c-40ea-b890-369500d91c0b