Fabric icon indicating copy to clipboard operation
Fabric copied to clipboard

[Question]: correct use of context.md (-c) for language change

Open julliannailluj opened this issue 1 year ago • 3 comments

What is your question?

In order to get answers in French, I created a context.md file, located in ~/.config/fabric. It contains this simple instruction: "Please answer in French.".

Its effectiveness is pretty random, I wonder if i'm using it correctly. Here is an example of how I use it: yt --transcript https://www.youtube.com/watch?v=VflYjdJ832k | fabric -csp summarize

I tried with various other patterns, with the same random effectiveness. Sometimes only the first and last sentences are in French, more like a comment. Some other times, nothing is in French.

Should I create another pattern to translate the text first and keep using -c afterwards?

julliannailluj avatar May 31 '24 10:05 julliannailluj

I also want to translate some transcripts to german and its also pretty random

Robnex avatar May 31 '24 23:05 Robnex

When downloading videos transcriptions, I recommend ask the Youtube to give you the correct language using the "--lang" parameter:

yt --transcript --comments --lang fr "https://www.youtube.com/watch?v=eG7yiX7vW7E"

There are several function to check which languages are available.

Advantages:

  • Youtube should have good translation.
  • You skip one (heavy) translation operation.

christrille avatar Jun 06 '24 13:06 christrille

To translate language, I create a custom pattern instead of extract_wisdom Snipaste_2024-06-14_15-02-38

ByTao123 avatar Jun 14 '24 07:06 ByTao123

To translate language, I create a custom pattern instead of extract_wisdom Snipaste_2024-06-14_15-02-38

Good Day, could you post a link to a paste of your pattern. I would be interested in it. Thanks

cblte avatar Jul 23 '24 08:07 cblte