-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5e9fce
commit 7b27f4c
Showing
8 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Custom on Ollama works | ||
|
||
Code | ||
llm_custom(reviews_table(), review, my_prompt) | ||
Output | ||
review | ||
1 This has been the best TV I've ever used. Great screen, and sound. | ||
2 I regret buying this laptop. It is too slow and the keyboard is too noisy | ||
3 Not sure how to feel about my new washing machine. Great color, but hard to figure | ||
.pred | ||
1 Yes | ||
2 No | ||
3 No | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Extract on Ollama works | ||
|
||
Code | ||
llm_extract(reviews_table(), review, "product") | ||
Output | ||
review | ||
1 This has been the best TV I've ever used. Great screen, and sound. | ||
2 I regret buying this laptop. It is too slow and the keyboard is too noisy | ||
3 Not sure how to feel about my new washing machine. Great color, but hard to figure | ||
.extract | ||
1 tv | ||
2 laptop | ||
3 washing machine | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Summarize on Ollama works | ||
|
||
Code | ||
llm_summarize(reviews_table(), review, max_words = 5) | ||
Output | ||
review | ||
1 This has been the best TV I've ever used. Great screen, and sound. | ||
2 I regret buying this laptop. It is too slow and the keyboard is too noisy | ||
3 Not sure how to feel about my new washing machine. Great color, but hard to figure | ||
.summary | ||
1 very good tv experience overall | ||
2 slow and noisy laptop purchase | ||
3 mixed feelings about new washer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Translate on Ollama works | ||
|
||
Code | ||
llm_translate(reviews_table(), review, "spanish") | ||
Output | ||
review | ||
1 This has been the best TV I've ever used. Great screen, and sound. | ||
2 I regret buying this laptop. It is too slow and the keyboard is too noisy | ||
3 Not sure how to feel about my new washing machine. Great color, but hard to figure | ||
.translation | ||
1 Este ha sido el mejor televisor que he utilizado. Gran pantalla y sonido. | ||
2 Lamento haber comprado esta laptop. Está demasiado lenta y el teclado es demasiado ruidoso. | ||
3 No estoy seguro de cómo sentirme sobre mi nueva lavadora. Color genial, pero difícil de manejar. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters