danielmiessler / fabric

fabric is an open-source framework for augmenting humans using AI. It provides a modular framework for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
https://danielmiessler.com/p/fabric-origin-story
MIT License
23.43k stars 2.48k forks source link

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

Closed julliannailluj closed 1 month ago

julliannailluj commented 4 months ago

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?

Robnex commented 4 months ago

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

christrille commented 4 months ago

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:

ByTao123 commented 3 months ago

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

cblte commented 2 months ago

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