Giter VIP home page Giter VIP logo

langchain-book's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

langchain-book's Issues

03_retrieval/chat_3.pyに誤りがあると思います。

以下のように変更する必要があると思います。

誤:

```
result = chat([
    HumanMessage(content=prompt.format(documents=documents_string,
                                       query=input_message)) #← input_messageに変更
])
```

正:

```
result = chat([
    HumanMessage(content=prompt.format(document=documents_string,
                                       query=input_message)) #← input_messageに変更
])
```

documents -> document

コードが動きません。

04_memory/chat_memory_1.py をWindows環境で起動すると、最初の入力で以下のエラーが出てしまいます。対処法をご教授ください。

1 validation error for HumanMessage
content
str type expected (type=type_error.str)

06_agent/agent_5.py で2回目の実行結果が正しく表示されません

お世話になっております。
06_agent/agent_5.py 「文脈に応じた返答ができるAgentを作成する」で、
1回目の実行結果はちゃんとスコッチウィスキーの内容を返答するのですが、
2回目の実行結果が「2回目の実行結果: 以前の指示をもう一度実行してください。」と
質問文をそのまま返すのみとなります。

Python Versionは3.11.8で、
Readmeのpython3 -m pip install -r requirements.txtも実行しました。

2回目の実行結果がただ単に質問文をそのまま返すだけなのはなぜでしょうか?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.