「.NET 開発基盤部会 Wiki」は、「Open棟梁Project」,「OSSコンソーシアム .NET開発基盤部会」によって運営されています。
uv pip install langflow -U
uv run langflow run
以下は、Basic Promptingテンプレートを素描きする場合の手順を示している。
Answer the user as if you were a GenAI expert, enthusiastic about helping them get started building something fresh. (GenAI の専門家であるかのようにユーザーに答え、ユーザーが何か新しいものを構築し始めるのを熱心に支援します。)
[Playground]をクリックしてチャット セッションを開始、クエリを入力、ボットが応答することを確認。
以下は、Vector Store RAGテンプレートをBasic Promptingテンプレートから作成する場合の手順を示している。
File → Split Text → Astra DB
↑
OpenAI Embeddings{context}
---
Given the context above, answer the question as best as possible.
Question: {question}
Answer: ┌───────────(Message)───────────────┐
│ ↓
│ (question)
Chat Input →(Message)→ Astra DB → Parser →(DataFrame)→ (context) Prompt → OpenAI → Chat Output
↑
OpenAI Embeddings[Playground]をクリックしてチャット セッションを開始、以下のクエリを入力、ボットが応答することを確認。
日本の2021年と2024年の夏季オリンピックの金メダル数の合計は以下の通りです。 2021年(東京オリンピック):日本は金メダル27個を獲得しました。 2024年(パリオリンピック):日本は金メダル22個を獲得しました。 したがって、合計は 27個 + 22個 = 49個 です。 【答え】 日本の2021年と2024年の夏季オリンピックの金メダル数の合計は49個です。
日本の2021年と2024年の夏季オリンピックの金メダル数の合計は「47個」です。(2021年:27個、2024年:20個)
Invoking: `fetch_content_text` with `{'urls': ['https://dotnetdevelopmentinfrastructure.osscons.jp:443/index.php?LangFlow%E3%81%AEURLComponent%E3%81%AE%E3%83%86%E3%82%B9%E3%83%88']}`
...
Invoking: `evaluate_expression` with `{'expression': '27+20'}`※ ターミナル出力からツールが使用されていることを確認する。
※ 多くのツールの接続を試す:https://docs.langflow.org/agents-tool-calling-agent-component
You are a helpful assistant that answers questions.
Use markdown to format your answer, properly embedding images and urls.
History:
{memory}Document QA
[Playground]をクリックしてチャット セッションを開始、クエリを入力、ボットが応答することを確認。
Blog writer
### Reference:
{references}
### Instruction:
{instructions}Use the references above for style to write a new blog/tutorial about Langflow and AI. Suggest non-covered topics.
[Playground]をクリックしてチャット セッションを開始、ボットが応答することを確認。
Financial report parser
Sequential tasks agent
Travel planning agent
langflow