LoginSignup
3
2

RAG の実践的な資料

Last updated at Posted at 2024-02-09

RAG に関する資料をメモ的にまとめます。

概要

触ってみる

OpenAI を使った記事です。シンプルにまとまっていて、利用例としてイメージが湧きやすいです。

プロンプトに関連情報を埋め込みます。

prompt = PromptTemplate(
    template="""
    文章を前提にして質問に答えてください。

    文章 :
    {document}

    質問 : {question}
    """,
    input_variables=["document", "question"],
)

このように書かれています。

「何を抽出するか」と言うところがRAGで一番難しいところである。

これについては以下の記事が詳しいです。

ローカル LLM

Azure

巨大コンテキストウィンドウ

実装戦略

情報検索

Retrieval(情報検索)はベクトル検索に限定されない一般の検索技術

LLM

発言埋め込み

X の発言は URL を書くだけで埋め込めますが、中身が表示されるまでタイムラグがあるため blockquote で埋め込んでいます。

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2