Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

✨AI to doc editor #250

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

✨AI to doc editor #250

wants to merge 5 commits into from

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Sep 12, 2024

Purpose

Add AI actions to the doc editor:

  • prompt (use the text selected as a prompt)
  • correct (fix typo)
  • rephrase
  • summarize
  • translate_en
  • translate_de
  • translate_fr

We can quite easily add more actions.

Proposal

  • ✨(backend) create ai endpoint
  • ✨(frontend) add ai blocknote feature
  • 🔧(helm) add ai setting to environments
  • tests

Demo

scrnli_9_23_2024_9-52-03.AM.webm

@AntoLC AntoLC self-assigned this Sep 12, 2024
@AntoLC AntoLC force-pushed the feature/ai-blocknote branch 4 times, most recently from 4daa42c to 01d279c Compare September 20, 2024 16:26
@AntoLC AntoLC linked an issue Sep 20, 2024 that may be closed by this pull request
3 tasks
@AntoLC AntoLC changed the title ✨(frontend) add ai button to blocknote toolbar ✨(frontend) AI to Docs Sep 20, 2024
@AntoLC AntoLC changed the title ✨(frontend) AI to Docs ✨AI to Docs Sep 23, 2024
@AntoLC AntoLC changed the title ✨AI to Docs ✨AI to doc editor Sep 23, 2024
@AntoLC AntoLC force-pushed the feature/ai-blocknote branch 3 times, most recently from 9a03ba9 to 40eea1f Compare September 23, 2024 07:59
@AntoLC AntoLC marked this pull request as ready for review September 23, 2024 08:03
@AntoLC AntoLC force-pushed the feature/ai-blocknote branch 5 times, most recently from a6d909b to bab5602 Compare September 30, 2024 08:12
We created a new endpoint to perform AI operations.

POST /api/v1.0/ai/ with expected data:
- text: str
- action: str [prompt, correct, rephrase, summarize,
translate_en, translate_de, translate_fr]
Return JSON response with the processed text.
Add AI button to the editor toolbar.
We can use AI to generate content with our editor.
A list of predefined actions are available to use.
Add the ai setting to the environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨Integrate IA feature
1 participant