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

Merged
merged 5 commits into from
Oct 16, 2024
Merged

✨AI to doc editor #250

merged 5 commits into from
Oct 16, 2024

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 6 times, most recently from bab5602 to 3ad1d32 Compare September 30, 2024 08:14
@sampaccoud sampaccoud force-pushed the feature/ai-blocknote branch 2 times, most recently from c9ec14c to 978d711 Compare October 9, 2024 09:39
src/backend/core/api/utils.py Outdated Show resolved Hide resolved
src/backend/core/api/viewsets.py Show resolved Hide resolved
src/backend/core/services/ai_services.py Outdated Show resolved Hide resolved
src/backend/core/api/viewsets.py Show resolved Hide resolved
src/backend/core/api/viewsets.py Show resolved Hide resolved
@sampaccoud sampaccoud requested a review from qbey October 15, 2024 21:55
@AntoLC AntoLC force-pushed the feature/ai-blocknote branch 8 times, most recently from f8b2a11 to 41a5d29 Compare October 16, 2024 16:20
@sampaccoud sampaccoud enabled auto-merge (rebase) October 16, 2024 17:58
We created 2 new action endpoints on the document
to perform AI operations:
- POST /api/v1.0/documents/{uuid}/ai-transform
- POST /api/v1.0/documents/{uuid}/ai-translate
We start to have a deep prop drilling with doc,
time to use the doc store to reduce that.
We still prefer to pass the doc as a prop to
keep our component as "pure" as possible, but if
the drilling is too deep, better
to use the doc store.
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.
A test on e2e was flaky, this commit fixes it.
@sampaccoud sampaccoud merged commit c327928 into main Oct 16, 2024
16 checks passed
@sampaccoud sampaccoud deleted the feature/ai-blocknote branch October 16, 2024 20:58
@AntoLC AntoLC mentioned this pull request Oct 17, 2024
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
3 participants