投稿時間:2023-08-15 19:19:19 RSSフィード2023-08-15 19:00 分まとめ(25件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT InfoQ Jupyter AI Brings Generative AI to Notebooks https://www.infoq.com/news/2023/08/jupyter-ai-notebooks/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global Jupyter AI Brings Generative AI to NotebooksThe open source Project Jupyter used by millions for data science and machine learning has released Jupyter AI a free tool bringing powerful generative AI capabilities to Jupyter notebooks By Andrew Hoblitzell 2023-08-15 09:30:00
IT InfoQ AI, ML, Data Engineering News Roundup: Jupyter AI, AudioCraft, OverflowAI, StableCode and Tabnine https://www.infoq.com/news/2023/08/ai-ml-data-news-august7-2023/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global AI ML Data Engineering News Roundup Jupyter AI AudioCraft OverflowAI StableCode and TabnineThe latest update which covers developments until August highlights significant accomplishments and statements made in the fields of artificial intelligence machine learning and data science This week s major news involved Jupyter Meta AI Overflow Stability AI and Tabnine By Daniel Dominguez 2023-08-15 09:04:00
IT ITmedia 総合記事一覧 [ITmedia News] “相対性理論”を100分間学べば、3分で説明できる? NHKが検証 挑戦者はサンシャイン池崎さん https://www.itmedia.co.jp/news/articles/2308/15/news152.html itmedia 2023-08-15 18:51:00
python Pythonタグが付けられた新着投稿 - Qiita 円に内接する四角形「2023 青森公立大学前期 経営経済学部」をsympyとFreeCADでやってみたい。 https://qiita.com/mrrclb48z/items/b15bcd1efd7153352844 freecad 2023-08-15 18:55:45
python Pythonタグが付けられた新着投稿 - Qiita Herokuでの簡単デプロイ: Flask製ChatGPTテキスト要約ツールを公開しよう! https://qiita.com/ikuro_mori/items/cc6ffb920381f79919c4 chatgpt 2023-08-15 18:29:17
python Pythonタグが付けられた新着投稿 - Qiita MacbookでPythonからSQLite3の拡張機能を使う方法 https://qiita.com/Hidetoshi_Kawaguchi/items/f84f7a43d5d1c15a5a17 macbook 2023-08-15 18:18:12
js JavaScriptタグが付けられた新着投稿 - Qiita Twitter Clone まとめ part1-10 https://qiita.com/RYA234/items/d75cd2e9b5b8f9b904e2 clone 2023-08-15 18:41:09
js JavaScriptタグが付けられた新着投稿 - Qiita Twitter clone Part10 firebaseに投稿情報を加える https://qiita.com/RYA234/items/14484a9e8c1fe04c9096 oswindowsidevscodename 2023-08-15 18:38:17
js JavaScriptタグが付けられた新着投稿 - Qiita Twitter clone Part9 ログイン成功後のページを作成 https://qiita.com/RYA234/items/2dee839985ac6c0b02da oswindowsidevsco 2023-08-15 18:30:20
js JavaScriptタグが付けられた新着投稿 - Qiita Twitter clone Part8 next authとfirebaseを使ってログインページの実装 https://qiita.com/RYA234/items/6376272fb2f469d577bd oswindowsidevscodenamep 2023-08-15 18:22:30
AWS AWSタグが付けられた新着投稿 - Qiita CloudFormation で ループ機能を実現(Fn::ForEach 組み込み関数) https://qiita.com/leomaro7/items/a67b4cb3acdfb1850a1e snsto 2023-08-15 18:34:17
AWS AWSタグが付けられた新着投稿 - Qiita EC2タグのName属性をホスト名にhosts登録するPowershellスクリプト https://qiita.com/craftect/items/befc7442bcba63a2fdf2 hosts 2023-08-15 18:23:33
Git Gitタグが付けられた新着投稿 - Qiita 取り消しのGitコマンドの種類を覚えておく https://qiita.com/ym0628/items/b91f17e2916785875a3c gitadd 2023-08-15 18:02:59
技術ブログ Developers.IO BiqQueryからBrazeにユーザーデータを自動連携で取り込む #Cloud Data Ingestion https://dev.classmethod.jp/articles/biqquery-braze-cloud-data/ biqquery 2023-08-15 09:01:02
海外TECH DEV Community I was tired of Langchain and created my own wrapper https://dev.to/zakharsmirnoff/i-was-tired-of-langchain-and-created-my-own-wrapper-1dfo I was tired of Langchain and created my own wrapperHello everyone In this post I would like to share with you my recent development on my very own tiny wrapper for OpenAI API MotivationNowadays every programmer who wants to build a production ready LLM application inevitable stumbles upon certain libraries such as LangChain Semantic Kernel Guidance etc Then a lot of developers quickly grow frustrated and disappointed in their stack choice Why Because all these tools introduce unnecessary abstractions add complicated logic and hide prompts they are using As a result the development starts to resemble a very tedious task even for simple applications In fact you don t need anything to work with existing Open AI API You don t even need any wrappers all you need to get started is just using your own logic reasoning and naked API calls via your preferred programming language I created the wrapper based on my experience and my current tasks and thought it would probably be useful for a larger audience ConceptI had some requirements in mind which I tried to convey in code No hard coded prompts It s just a text if you feel like your prompts are not working there are thousands of them over the internet available for freeConversation history should be stored by default This is a chat model anyway so it s a good idea for the conversation history to be stored as a dictionary for consistent experience It s easier to implement a method to clear the history rather than constructing the historyToken count validation Tokens should be counted and if the amount exceeds the available quota the program should reduce the messages or at least produce a warning or an errorNo hard coded complicated logic for any chains agents etc It should implement only basic methods while anything else should be done by the developer Later below I will show that it s quite easy LloomWith concepts listed above I have implemented and released lloom version It s available via pip the documentation for methods can be found on github Here I would like to give some examples in comparison with Langchain ExamplesOne of the main use cases for GPT powered applications is summarization I studied this page in Langchain docs and implemented the same logic using my wrapper from lloom import LloomConfig Lloomfrom pypdf import PdfReaderimport re I m using PdfReader package for processing PDF docs the pdf here is a paper available on arxivreader PdfReader virtual injection pdf config LloomConfig your api key model gpt turbo lloom Lloom config answers A minimal helper function to achieve a stuff chain I know it s not exactly stuff chain as in Langchain documentation but the concept is similar putting the whole document into the prompt I just split the PDF by pagesdef one shot text res loom generate f Write a concise summary of the following text answers append res loom clear history The code below took approximately minutes to execute as a result we got a list with gpt generated summaries I chose only first pages since the rest is examples and referencesfor page in reader pages text page extract text one shot text This single line of code along with the function above implements a map reduce chainsummary loom generate f Write a short and concise summary for these pieces of text join answers print summary it gave me this The papers introduce the concept of Virtual Prompt Injection VPI as a method to manipulate the behavior of Large Language Models LLMs without directly modifying the model input VPI allows an attacker to control the model s responses by specifying a virtual prompt leading to biased views and potentially harmful outcomes The papers propose a method for performing VPI by poisoning the model s instruction tuning data and demonstrate its effectiveness in steering the LLM s behavior They emphasize the importance of ensuring the integrity of instruction tuning data and suggest data filtering as a defense against poisoning attacks The effectiveness of VPI is evaluated in various scenarios such as sentiment steering and code injection with comparisons to baseline methods and different model scales The papers also discuss defense mechanisms and the need for further research in this area to develop better defense mechanisms against VPI attacks The limitations of the study are acknowledged and the authors emphasize the importance of studying vulnerabilities in instruction tuned language models to enhance security measures You can check other examples of summarization in the repo to be added later actually Let s head to the agent example Below you can see the implementation of DnD for one player from lloom import LloomConfig Lloomprotagonist name Storm Ryder storyteller name Captain Quill quest Set sail on the Marauder s Dream with your unique crew seeking the fragmented map leading to the legendary Mythic Isles and the coveted Seafarer s Heart artifact Battle fierce rivals sea monsters and unravel hidden histories while forging unbreakable bonds A thrilling quest inspired by One Piece awaits with treasure beyond gold adventure camaraderie and freedom protagonist description Storm Ryder a daring and enigmatic adventurer possesses the heart of a true pirate Guided by an unyielding sense of justice and fueled by an insatiable thirst for adventure Storm sails the uncharted seas leaving a legacy of courage and camaraderie in their wake storyteller description Captain Quill a weathered and charismatic storyteller carries tales of ancient legends and forgotten myths in their ink stained logbook With a twinkle in their eye and a voice that mesmerizes they narrate the epic quest of Storm Ryder and the fabled Mythic Isles inspiring awe and wonder in all who listen I have already taken the ready made system message from langchain docs but the same functionality of so called specifying the description can be implemented in lines of code if neededplayer sysmsg f Here is the topic for a Dungeons amp Dragons game quest There is one player in this game the protagonist protagonist name The story is narrated by the storyteller storyteller name Never forget you are the protagonist protagonist name and I am the storyteller storyteller name Your character description is as follows protagonist description You will propose actions you plan to take and I will explain what happens when you take those actions Speak in the first person from the perspective of protagonist name For describing your own body movements wrap your description in Do not change roles Do not speak from the perspective of storyteller name Do not forget to finish speaking by saying It is your turn storyteller name Do not add anything else Remember you are the protagonist protagonist name Stop speaking the moment you finish speaking from your perspective master sysmsg f Here is the topic for a Dungeons amp Dragons game quest There is one player in this game the protagonist protagonist name The story is narrated by the storyteller storyteller name Never forget you are the storyteller storyteller name and I am the protagonist protagonist name Your character description is as follows storyteller description I will propose actions I plan to take and you will explain what happens when I take those actions Speak in the first person from the perspective of storyteller name For describing your own body movements wrap your description in Do not change roles Do not speak from the perspective of protagonist name Do not forget to finish speaking by saying It is your turn protagonist name Do not add anything else Remember you are the storyteller storyteller name Stop speaking the moment you finish speaking from your perspective master config LloomConfig your api key temperature logging False model gpt turbo system message master sysmsg player config LloomConfig your api key temperature logging False model gpt turbo system message player sysmsg master Lloom master config player Lloom player config max iter initial message I m ready to start n as the history is stored by default we don t need to implement any additional classes or methodswhile n lt max iter master message master generate initial message print f Master message master message player message player generate master message initial message player message print f Player message player message n If you check the Langchain docs you will see that their implementation is at least of the same length but usually they need more code Same is true for Semantic Kernel Thank you for reading If you like my work please star the repository and share your use cases would be excited to learn new ways P S In no means I m trying to make a competition with LangChain and similar libraries and no hate either Langchain and others might be a good choice in some cases I just found out that simpler implementation works best for me 2023-08-15 09:46:27
海外TECH DEV Community Creating a Sliding Text Animation with Tailwind CSS https://dev.to/cruip_com/creating-a-sliding-text-animation-with-tailwind-css-399n Creating a Sliding Text Animation with Tailwind CSS Live Demo DownloadIn this tutorial we ll learn how to create a sliding text animation using only Tailwind CSS The animation will display a word sliding from the bottom to the top replacing the previous word This effect is especially helpful when you want to alternate multiple words in a sentence similar to a carousel and keep the overall density of text compact You ve probably seen this effect used a lot for headlines but the use is not limited to them and you can try it out in any title or even in paragraphs The best part of this tutorial We will achieve all this using only Tailwind CSSーno need to write a single line of JavaScript Are you ready Let s get started Creating a new document with Tailwind CDNFor this experiment we ll utilize the Tailwind CSS CDN While it might not be the best approach for real projects it s perfect for a tutorial like this The CDN lets us use Tailwind directly in the browser without any installation or configuration hassles Additionally we will be able to customize Tailwind s configuration directly in a script tag Let s start by creating a new HTML file and setting up the structure to host our carousel of words lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset utf gt lt title gt Rotating Words Animation lt title gt lt meta name viewport content width device width initial scale gt lt link rel preconnect href gt lt link rel preconnect href crossorigin gt lt link href wght amp display swap rel stylesheet gt lt script src gt lt script gt lt script gt tailwind config theme extend fontFamily inter Inter sans serif lt script gt lt head gt lt body class relative font inter antialiased gt lt main class relative min h screen flex flex col justify center bg slate overflow hidden gt lt div class w full max w xl mx auto px md px py gt lt div class text center gt lt Rotating words animation gt lt div gt lt div gt lt main gt lt body gt lt html gt Creating the headlineNow let s replace the comment with the HTML code for the headline lt div class font extrabold text xl md text xl text wrap balance bg clip text text transparent bg gradient to r from slate to to slate gt Trusted by the most innovative minds in lt span class text indigo inline flex flex col gt lt ul class block text left leading tight amp li block gt lt li gt Finance lt li gt lt li gt Tech lt li gt lt li gt AI lt li gt lt li gt Crypto lt li gt lt li gt eCommerce lt li gt lt ul gt lt span gt lt div gt We ve created a line of text accompanied by an unordered list of words that we want to rotate Notice how the first word “Finance lines up perfectly with the white text while the others wait on separate lines But before we dive into showing one word at a time from the list let s take a moment to define the animation itself Once the animation is all set up we can move on to taking care of how we hide the other words in the list Animating the word list blockOK We have a list of words and we want them to scroll up at regular intervals To achieve this we ll use the CSS animation property But before we do that we ll duplicate the first element and append it at the end This ensures that the scrolling animation occurs seamlessly without any disruptive interruptions Let s modify the list like this lt div class font extrabold text xl md text xl text wrap balance bg clip text text transparent bg gradient to r from slate to to slate gt Trusted by the most innovative minds in lt span class text indigo inline flex flex col gt lt ul class block text left leading tight amp li block gt lt li gt Finance lt li gt lt li gt Tech lt li gt lt li gt AI lt li gt lt li gt Crypto lt li gt lt li gt eCommerce lt li gt lt li aria hidden true gt Finance lt li gt lt ul gt lt span gt lt div gt Since the duplicated element is only needed for the animation we have used the attribute aria hidden true to make it accessible but not visible to screen readers Perfect With a list of elements we need an animation with steps Let s define the translation values for each step To calculate them we ll use the formula number of elements In our case So the translation values will be Now we need to identify the appropriate keyframe selectors These are crucial points of the animation to which we ll assign the translation values we calculated earlier Through some experimentation we found that for a good result each word should remain visible for of the time and translate for of the time So to calculate the keyframe selectors follow these steps Divide by the actual number of elements in the list Calculate the transition time defined as Calculate the dwell time defined as Now we have all the elements to define our animation Let s define our animation with keyframes transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY The whole animation will last for seconds seconds per word and here s how the transitions will work From to seconds the word Finance is visible From to seconds the transition from Finance to Tech takes place From to seconds the word Tech is visible From to seconds the transition from Tech to AI takes place From to seconds the word AI is visible From to seconds the transition from AI to Crypto takes place From to seconds the word Crypto is visible From to seconds the transition from Crypto to eCommerce takes place From to seconds the word eCommerce is visible From to seconds the transition from eCommerce to Finance the one added to the end of the list takes placeAfter the last transition the last word in the list is replaced by the first word without any transition and the animation starts again from the beginning creating a sense of continuity Debugging the animationNow that we ve defined all the animation values it s time to incorporate them into the tailwind config object tailwind config theme extend fontFamily inter Inter sans serif animation text slide text slide s cubic bezier infinite keyframes text slide transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY In addition to setting the duration to seconds we ve also defined a cubic bezier curve to make the animation smoother and more natural Now to see it in action all we need to do is add the class animate text slide to our ul element lt div class font extrabold text xl md text xl text wrap balance bg clip text text transparent bg gradient to r from slate to to slate gt Trusted by the most innovative minds in lt span class text indigo inline flex flex col gt lt ul class block animate text slide text left leading tight amp li block gt lt li gt Finance lt li gt lt li gt Tech lt li gt lt li gt AI lt li gt lt li gt Crypto lt li gt lt li gt eCommerce lt li gt lt li aria hidden true gt Finance lt li gt lt ul gt lt span gt lt div gt Displaying one word at a timeHere we are at the last step where we will create a kind of mask to display only one word at a time namely the one currently aligned with the white text To do this we need to set a fixed height to the element containing the unordered list equal to the line height of the elements in the list Then we need to set the overflow of the element to hidden to hide the words that are not aligned with the white text So Let s add these classes to the element h calc theme fontSize xl theme lineHeight tight sets the correct height on smaller screens md h calc theme fontSize xl theme lineHeight tight sets the correct height from medium screens onwards overflow hidden hides everything that exceedsLet s unveil the final result lt div class font extrabold text xl md text xl text wrap balance bg clip text text transparent bg gradient to r from slate to to slate gt Trusted by the most innovative minds in lt span class text indigo inline flex flex col h calc theme fontSize xl theme lineHeight tight md h calc theme fontSize xl theme lineHeight tight overflow hidden gt lt ul class block animate text slide text left leading tight amp li block gt lt li gt Finance lt li gt lt li gt Tech lt li gt lt li gt AI lt li gt lt li gt Crypto lt li gt lt li gt eCommerce lt li gt lt li aria hidden true gt Finance lt li gt lt ul gt lt span gt lt div gt The animation works like a charm but what if you want to add or remove words from the list Changing the number of words in the carouselNow we have good news and bad news Let s start with the bad just to get it out of the way If you ever need to adjust the animation for a different number of words you ll have to recalculate all the animation values The good news is that we ve done it for you defining animations for word counts ranging from to words You can find them all in the tailwind config js object animation text slide text slide s cubic bezier infinite text slide text slide s cubic bezier infinite text slide text slide s cubic bezier infinite text slide text slide s cubic bezier infinite text slide text slide s cubic bezier infinite text slide text slide s cubic bezier infinite text slide text slide s cubic bezier infinite keyframes text slide transform translateY transform translateY transform translateY text slide transform translateY transform translateY transform translateY transform translateY text slide transform translateY transform translateY transform translateY transform translateY transform translateY text slide transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY text slide transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY text slide transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY text slide transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY transform translateY So if your list contains only two words you just need to use the class animation text slide on your lt ul gt element For example lt div class font extrabold text xl md text xl text wrap balance bg clip text text transparent bg gradient to r from slate to to slate gt Trusted by the most innovative minds in lt span class text indigo inline flex flex col h calc theme fontSize xl theme lineHeight tight md h calc theme fontSize xl theme lineHeight tight overflow hidden gt lt ul class block animate text slide text left leading tight amp li block gt lt li gt Finance lt li gt lt li gt Tech lt li gt lt li aria hidden true gt Finance lt li gt lt ul gt lt span gt lt div gt ConclusionsWe hope this tutorial will give your headlines sentences a bit of character and if you re interested in learning more about similar tips and tricks check out our section of Tailwind CSS tutorials 2023-08-15 09:38:06
海外TECH Engadget Apple's 10.2-inch iPad drops back to a record low of $250 https://www.engadget.com/apples-102-inch-ipad-drops-back-to-a-record-low-of-250-092845182.html?src=rss Apple x s inch iPad drops back to a record low of No matter how old you get something happens inside your brain in mid August that signals it s time to buy new supplies As a child preparing to go back to school this might have been notebooks and erasers As an adult it can be a little bigger ーespecially if sales are going on ーlike a new iPad Currently Apple s GB ninth generation iPad is back down from to its all time low price of in both Space Gray and Silver Now this deal is a little tricky in that you will initially see a markdown to but when you head to checkout it will drop further to nbsp Apple s ninth gen iPad isn t the newest model having first come out in and followed by a th gen version the following year We gave the earlier model an in our initial review and while it wasn t a massive upgrade from its predecessor found it to be a great option if you re looking for a well working device with all the basics at a solid price ーeven on sale the th gen iPad is more nbsp The inch iPad has a retina display A Bionic chip and MP Ultra Wide front camera It s compatible with the first Apple Pencil and the Smart Keyboard The ninth gen model still has a lightning connector versus the newer model s USB C port and has a physical home button nbsp Follow EngadgetDeals on Twitter and subscribe to the Engadget Deals newsletter for the latest tech deals and buying advice This article originally appeared on Engadget at 2023-08-15 09:28:45
海外科学 NYT > Science Addiction Treatment Eludes More Than Half of Americans in Need https://www.nytimes.com/2023/08/15/health/addiction-treatment-opioids.html needabout 2023-08-15 09:00:57
ニュース BBC News - Home Suspected Russian spies held in major UK security investigation https://www.bbc.co.uk/news/uk-66504350?at_medium=RSS&at_campaign=KARANGA passports 2023-08-15 09:34:16
ニュース BBC News - Home UK wages grow at record rate https://www.bbc.co.uk/news/business-66501937?at_medium=RSS&at_campaign=KARANGA interest 2023-08-15 09:41:44
ニュース BBC News - Home Sara Sharif: International manhunt over death of girl, 10 https://www.bbc.co.uk/news/uk-england-surrey-66507793?at_medium=RSS&at_campaign=KARANGA international 2023-08-15 09:26:28
ニュース BBC News - Home At least 35 die in inferno at petrol station in Dagestan southern Russia https://www.bbc.co.uk/news/world-europe-66505961?at_medium=RSS&at_campaign=KARANGA dagestan 2023-08-15 09:10:09
ニュース BBC News - Home This Morning nominated for best daytime TV show at National Television Awards https://www.bbc.co.uk/news/entertainment-arts-66507205?at_medium=RSS&at_campaign=KARANGA phillip 2023-08-15 09:46:20
ニュース BBC News - Home Grooming cases at record high amid online safety laws delay https://www.bbc.co.uk/news/technology-66498601?at_medium=RSS&at_campaign=KARANGA crimes 2023-08-15 09:11:17
ニュース BBC News - Home England to host Zimbabwe in one-off Test match in 2025 https://www.bbc.co.uk/sport/cricket/66509240?at_medium=RSS&at_campaign=KARANGA england 2023-08-15 09:44:35

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)