Skip to content

Chat 기능 만들기 #4

@sang459

Description

@sang459

필요조건

  • 정확성
  • 출처
  • 이전 대화의 맥락 이해

Trial and Error

  1. chain을 바꿔보기 (Retrieval Chain, QA chain, FLARE chain...)
  2. chian type을 바꿔보기 (map reduce, map rank, refine, stuff 등등...)
  3. embedding method를 바꿔보기 (Pinecone, Deep Lake, Chroma 등등...)

사용가능한 chain module 후보

  1. Conversational Retrieval Chain
    https://python.langchain.com/en/latest/modules/chains/index_examples/chat_vector_db.html
    장점: 맥락 이해 탑재
    단점: 출처 표시 구현해야함

  2. QA with sources Chain
    https://python.langchain.com/en/latest/modules/chains/index_examples/qa_with_sources.html
    장점: 출처 표시 탑재
    단점: 맥락 이해 구현해야함

  3. Retrieval QA with Sources Chain
    https://python.langchain.com/en/latest/modules/chains/index_examples/vector_db_qa_with_sources.html
    장점: 출처 표시 탑재
    단점: 맥락 이해 구현해야함

  4. FLARE
    https://python.langchain.com/en/latest/modules/chains/examples/flare.html
    장점: 높은 정확성
    단점: 출처표시, 맥락이해 구현해야함, 시간 오래 걸림

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions