norden.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Moin! Dies ist die Mastodon-Instanz für Nordlichter, Schnacker und alles dazwischen. Folge dem Leuchtturm.

Administered by:

Server stats:

3.5K
active users

#api

20 posts19 participants1 post today

"When thinking about a large language model input and output, a text prompt (sometimes accompanied by other modalities such as image prompts) is the input the model uses to predict a specific output. You don’t need to be a data scientist or a machine learning engineer – everyone can write a prompt. However, crafting the most effective prompt can be complicated. Many aspects of your prompt affect its efficacy: the model you use, the model’s training data, the model configurations, your word-choice, style and tone, structure, and context all matters. Therefore, prompt engineering is an iterative process. Inadequate prompts can lead to ambiguous, inaccurate responses, and can hinder the model’s ability to provide meaningful output.

When you chat with the Gemini chatbot, you basically write prompts, however this whitepaper focuses on writing prompts for the Gemini model within Vertex AI or by using the API, because by prompting the model directly you will have access to the configuration such as temperature etc.

This whitepaper discusses prompt engineering in detail. We will look into the various prompting techniques to help you getting started and share tips and best practices to become a prompting expert. We will also discuss some of the challenges you can face while crafting prompts."

kaggle.com/whitepaper-prompt-e

www.kaggle.comPrompt Engineering

DOGE-"Hackathon" soll alle US-Steuerdaten zusammenführen

Aufwändig getrennt gehaltene Daten von Steuerzahlern sollen flott in der Cloud zusammengeführt werden. Womöglich steuert Palantir eine Mega-API bei.

heise.de/news/DOGE-Hackathon-s

heise online · DOGE-"Hackathon" soll alle US-Steuerdaten zusammenführen
More from Daniel AJ Sokolov

🌘 使用 TypeScript 在 Gemini API 中搭配 OpenAI 後備方案
➤ 提升應用程式的穩定性:Gemini 與 OpenAI 的無縫整合
sometechblog.com/posts/try-gem
本文介紹瞭如何在 TypeScript 中使用 Gemini API,並設定 OpenAI 作為後備方案,以應對 Gemini API 的速率限制。作者分享了透過 OpenAI 的 TS/JS 函式庫和自定義輔助函式實現此功能的具體方法,特別是針對 Gemini gemini-2.5-pro-exp-03-25 模型每分鐘僅支援 20 個請求的限制。文章提供了具體的程式碼範例,包括定義模型類型、建立 `getCompletion` 和 `getJSONCompletion` 輔助函式,以及如何使用它們進行 API 調用。
+ 這個方法真的很有用!我一直擔心 Gemini 的速率限制問題,現在有了 OpenAI 作為
#開發 #API #Gemini #OpenAI #TypeScript

sometechblog.comUse the Gemini API with OpenAI fallback in Typescript - sometechblog.comIf you want to use Gemini’s public API, but at the same time have a safe fallback in case you have exhausted the rate limits, you can use the OpenAI TS/JS library and a few helper functions. In my particular case I needed a type-safe solution for a chartmaker app with a fallback since Gemini’s gemini-2.5-pro-exp-03-25 model is restricted to 20 request/min. First, you need to define which models you want to use so that they appear as autosuggest when you use the helper functions: