|
1 |
| -import { Pipeline } from '@/src/pipeline/Pipeline'; |
2 |
| -import { useSetAtom } from 'jotai'; |
3 |
| -import { pipelineAtom } from '~/store/store'; |
4 |
| -import { Button } from '../catalyst/button'; |
5 | 1 | import { CustomMarkdown } from '../markdown/Markdown';
|
6 |
| -import compare from './examples/compare.json'; |
7 |
| -import complaints from './examples/complaints.json'; |
8 |
| -import jsonld from './examples/jsonld.json'; |
9 |
| -import writing from './examples/writing.json'; |
10 |
| - |
11 |
| -export function Help({ close }: { close: () => void }) { |
12 |
| - const setPipeline = useSetAtom(pipelineAtom); |
13 |
| - |
14 |
| - const setExample = (ex: object) => { |
15 |
| - setPipeline(ex as Pipeline); |
16 |
| - close(); |
17 |
| - }; |
18 | 2 |
|
| 3 | +export function Help() { |
19 | 4 | return (
|
20 | 5 | <div className="prose prose-sm dark:prose-invert max-w-full">
|
21 | 6 | <CustomMarkdown>
|
22 | 7 | {`LitLytics is an affordable, simple analytics platform for everyone designed to streamline the process of working with complex datasets.
|
23 | 8 | By combining LLMs with javascript, LitLytics allows you to generate complete data processing pipelines based on natural language descriptions.
|
24 | 9 |
|
25 | 10 | With LitLytics, you can transform data, extract insights, and automate routine tasks without having to write any code.
|
26 |
| -Just describe the task in plain language, and LitLytics will handle the rest – from parsing and cleaning data to generating output in structured formats.`} |
27 |
| - </CustomMarkdown> |
| 11 | +Just describe the task in plain language, and LitLytics will handle the rest – from parsing and cleaning data to generating output in structured formats. |
28 | 12 |
|
29 |
| - <h3 className="mt-0">Try some examples:</h3> |
30 |
| - |
31 |
| - <ul> |
32 |
| - <li> |
33 |
| - <Button plain onClick={() => setExample(complaints)}> |
34 |
| - Extracting complaints from negative reviews |
35 |
| - </Button> |
36 |
| - </li> |
37 |
| - <li> |
38 |
| - <Button plain onClick={() => setExample(compare)}> |
39 |
| - Comparing multiple products based on user input |
40 |
| - </Button> |
41 |
| - </li> |
42 |
| - <li> |
43 |
| - <Button plain onClick={() => setExample(jsonld)}> |
44 |
| - Converting text into structured formats like JSON-LD |
45 |
| - </Button> |
46 |
| - </li> |
47 |
| - <li> |
48 |
| - <Button plain onClick={() => setExample(writing)}> |
49 |
| - Writing Instagram posts with proof-reading for clarity and tone |
50 |
| - </Button> |
51 |
| - </li> |
52 |
| - </ul> |
| 13 | +You can find examples in the repository in the [examples folder](https://github.com/yamalight/litlytics/tree/main/examples).`} |
| 14 | + </CustomMarkdown> |
53 | 15 | </div>
|
54 | 16 | );
|
55 | 17 | }
|
0 commit comments