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

Semantic Kernel Summaries Plugin fails to preserve the original language of the text #34

Closed
LuisM000 opened this issue Dec 20, 2023 · 0 comments · Fixed by #35 or #36
Closed

Semantic Kernel Summaries Plugin fails to preserve the original language of the text #34

LuisM000 opened this issue Dec 20, 2023 · 0 comments · Fixed by #35 or #36
Assignees
Labels
bug Something isn't working

Comments

@LuisM000
Copy link
Contributor

Current Behavior

The summaries plugin is not preserving the original language of the text; it consistently returns the summary in English.

Expected Behavior

The plugin should retain the original language of the text. For example, if the input text is in Spanish, the summary should be in Spanish.

Tests

When requesting a summary for the following text, the plugin returns the summary in English.

Test data

  • Model name: gpt-35-turbo
  • Model version: 0613
  • Input text: Augusta Ada King, condesa de Lovelace (Londres, 10 de diciembre de 1815-íd., 27 de noviembre de 1852), registrada al nacer como Augusta Ada Byron y conocida habitualmente como Ada Lovelace, fue una matemática y escritora británica, célebre sobre todo por su trabajo acerca de la computadora mecánica de uso general de Charles Babbage, la denominada máquina analítica. Fue la primera en reconocer que la máquina tenía aplicaciones más allá del cálculo puro y en haber publicado lo que se reconoce hoy como el primer algoritmo destinado a ser procesado por una máquina, por lo que se le considera como la primera programadora de ordenadores.
    Lovelace fue la única hija legítima del poeta Lord Byron y Anna Isabella Noel Byron. Byron se separó de su esposa un mes después del nacimiento de Ada y dejó Inglaterra para siempre cuatro meses después. Conmemoró la despedida en un poema que comienza: «¿Es tu rostro como el de tu madre, mi bella hija? ¡ADA! Hija única de mi casa y mi corazón».​ Murió en la Guerra de independencia de Grecia cuando Ada tenía ocho años.
    Dedujo y previó la capacidad de los ordenadores para ir más allá de los simples cálculos de números, mientras que otros, incluido el propio Babbage, se centraron únicamente en estas capacidades.
    Su posición social y su educación la llevaron a conocer a científicos importantes como Andrew Crosse, sir David Brewster, Charles Wheatstone, Michael Faraday y al novelista Charles Dickens, relaciones que aprovechó para llegar más lejos en su educación. Entre estas relaciones se encuentra Mary Somerville, que fue su tutora durante un tiempo, además de amiga y estímulo intelectual.​ Ada Byron se refería a sí misma como una científica poetisa y como analista (y metafísica).​

Text extracted from Wikipedia

Result

Ada Lovelace, born Augusta Ada Byron, was a British mathematician and writer known for her work on Charles Babbage's mechanical general-purpose computer, the Analytical Engine. She was the first to recognize that the machine had applications beyond pure calculation and published what is now recognized as the first algorithm intended to be processed by a machine, making her the first computer programmer. Lovelace was the only legitimate daughter of poet Lord Byron and Anna Isabella Noel Byron. Byron separated from his wife a month after Ada's birth and left England forever four months later. He commemorated their farewell in a poem. Lovelace deduced and predicted the capabilities of computers to go beyond simple number calculations, while others, including Babbage himself, focused solely on these capabilities. Her social position and education allowed her to meet important scientists such as Andrew Crosse, Sir David Brewster, Charles Wheatstone, Michael Faraday, and novelist Charles Dickens, relationships she
used to further her education. One of these relationships was with Mary Somerville, who was her tutor, friend, and intellectual stimulus. Ada Byron referred to herself as a scientist poet and as an analyst (and metaphysician).

Expected Result

The summary of the text should be in Spanish (preserving the original language).

Possible Solution:

After various tests modifying the prompt (skprompt.txt) yielded unsatisfactory results, a potential solution could be to add a new parameter, "locale," to config.json. This parameter would explicitly specify the language in which the summary should be generated (thanks for the tip @rliberoff 😄).

@LuisM000 LuisM000 added the bug Something isn't working label Dec 20, 2023
@LuisM000 LuisM000 self-assigned this Dec 20, 2023
LuisM000 added a commit that referenced this issue Dec 21, 2023
…el-summaries-plugin-fails-to-preserve-the-original-language-of-the-text

Issue #34. Semantic kernel summaries plugin fails to preserve the original language of the text
LuisM000 added a commit that referenced this issue Dec 21, 2023
…tic_kernel_summaries_plugin_fails_to_preserve_the_original_language_of_the_text

Fix issue #34. Semantic kernel summaries plugin fails to preserve the original language of the text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment