kioku-space

As a personal memory space.

Exploring LangChain's Quickstart (4) - Dynamically Select the Tools (Agent)

In this series, we explore the ‘Quickstart’ section of the LangChain documentation.

Previously, we developed chains that operated on predefined steps. In this article, we explore how the LLM chooses the right tools for processing based on user input, introducing the concept of an agent.

In a previous post, we built a retriever from LangChain’s documentation.
Let’s revisit that setup:

Exploring LangChain's Quickstart (3) - Utilizing Conversation History

In this post, we continue our journey through LangChain’s Quickstart guide, exploring how to enhance your chains by integrating conversation history.

Here’s what we’ve set up so far:

  • retriever: Retrives a list of relevant documents based on the input text.
  • document_chain: Generates LLM responses using the user’s questions and the list of documents.
  • create_retrieval_chain: Combines retriever and document_chain to answer queries by referencing documents.

Developing a Memo App with Tkinter (2) - Saving a Memo to a Text File

Continuing from the previous “Hello World” program, this session dives into building a memo app with the following functionalities:

  1. A text box for entering a memo.
  2. A shortcut (Control+S) for saving the contents of the text box to a file.
  3. Displaying the file contents in the text box upon app launch.

Let’s get started by building on our previous program. First, we create the root window and place a frame inside it. Within this frame, we’ll set up the text box for memo entry.