{"id":12939,"date":"2024-11-15T08:33:02","date_gmt":"2024-11-15T07:33:02","guid":{"rendered":"https:\/\/flaven.fr\/?post_type=bf_videos_manager&#038;p=12939"},"modified":"2024-11-15T08:35:49","modified_gmt":"2024-11-15T07:35:49","slug":"evaluating-ai-generated-text-semantic-similarity-with-sentence-embeddings","status":"publish","type":"bf_videos_manager","link":"https:\/\/flaven.fr\/videos\/evaluating-ai-generated-text-semantic-similarity-with-sentence-embeddings\/","title":{"rendered":"Evaluating AI-Generated Text: Semantic Similarity with Sentence Embeddings"},"content":{"rendered":"<p>In this video, we demonstrate how to use Streamlit to query the Mistral LLM locally with the help of Ollama. We&#8217;ll show you how to input a prompt and output the result into a file. As a journalist, you can cut and paste content, a title, and a set of keywords to create a gold standard. This will then be sent to a Mistral-type LLM via a prompt to generate 10 alternative titles and a set of 10 keywords.<\/p>\n<p>We&#8217;ll cover the following steps:<br \/>\n1. Generate the output from the LLM using the script `024_ia_ollama_streamlit.py`.<br \/>\n2. Append additional variables to the output from the LLM using the script `027a_ia_ollama_streamlit_append_files.py`.<\/p>\n<p>You can read the article on my blog: Content Quality: How Sentence Embeddings Can Save AI-Generated Content and some other concerns on AI: Environmental Impact, Job Loss<br \/>\nhttps:\/\/wp.me\/p3Vuhl-3mv<\/p>\n<p>You can listen to the &#8220;podcast&#8221; of Blog Post Audio made with NotebookLM on this post: https:\/\/on.soundcloud.com\/61ufT6BNt4WzhvwX7<\/p>\n<p>The code is available on my github account: https:\/\/github.com\/bflaven\/ia_usages\/tree\/main\/ia_spacy_llm<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this video, we demonstrate how to use Streamlit to query the Mistral LLM locally with the help of Ollama. We&#8217;ll show you how to&hellip; <\/p>\n<p class=\"text-center\"><a href=\"https:\/\/flaven.fr\/videos\/evaluating-ai-generated-text-semantic-similarity-with-sentence-embeddings\/\" class=\"more-link\">Continue reading &rarr; <span class=\"screen-reader-text\">Evaluating AI-Generated Text: Semantic Similarity with Sentence Embeddings<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":12311,"comment_status":"open","ping_status":"closed","template":"","bf_videos_manager_tag":[2668,3244,2685,2870,2719,2771,3027,2751,2693,2903,2755,2754,2684,3243,2688],"bf_videos_manager_cat":[],"class_list":["post-12939","bf_videos_manager","type-bf_videos_manager","status-publish","has-post-thumbnail","hentry","bf_videos_manager_tag-ai","bf_videos_manager_tag-ai-generated","bf_videos_manager_tag-anaconda","bf_videos_manager_tag-automate","bf_videos_manager_tag-automation","bf_videos_manager_tag-automatization","bf_videos_manager_tag-developer","bf_videos_manager_tag-journalism","bf_videos_manager_tag-journalist","bf_videos_manager_tag-lazyness","bf_videos_manager_tag-learning","bf_videos_manager_tag-learning-by-doing","bf_videos_manager_tag-nlp","bf_videos_manager_tag-ollama","bf_videos_manager_tag-spacy"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager\/12939","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager"}],"about":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/types\/bf_videos_manager"}],"author":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/comments?post=12939"}],"version-history":[{"count":1,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager\/12939\/revisions"}],"predecessor-version":[{"id":12940,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager\/12939\/revisions\/12940"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media\/12311"}],"wp:attachment":[{"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/media?parent=12939"}],"wp:term":[{"taxonomy":"bf_videos_manager_tag","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager_tag?post=12939"},{"taxonomy":"bf_videos_manager_cat","embeddable":true,"href":"https:\/\/flaven.fr\/happy-api\/wp\/v2\/bf_videos_manager_cat?post=12939"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}