AI learning tool Open Notebook as an alternative to NotebookLM: chat and embeddings should be kept separate

Author’s note: Build your own knowledge base with the open-source, self-hosted Open Notebook. Pick OpenAI Compatible and fill in the chat model and embedding model separately — and here’s why the Anthropic route needs its own separate embedding key.

You’ve got a pile of PDFs, web clippings, and scattered notes, and you want to keep them on your own machine, then pay per token to ask them questions. Open Notebook is built for exactly that. On GitHub it bills itself as an open-source implementation of NotebookLM, supports self-hosting, and as of 2026-11-30 it has 42344 stars. A lot of people get it installed and then hit the same wall: chat models and embedding models often don’t go through the same endpoint.

This isn’t a feature-by-feature comparison, and it won’t promise one-to-one parity with NotebookLM. This article solves exactly one thing: how to hook your knowledge base up to your own keys, and why chat and embeddings need to be configured separately.

The core takeaway: by the end, you’ll know what to put in the chat field and the embedding field when you choose OpenAI Compatible in Open Notebook. You’ll also know why, when you go with the Anthropic route, you still need to configure a separate embedding key.

open-notebook-notebooklm-alternative-separate-chat-embedding-en-image-0


Open Notebook as a NotebookLM Alternative: Why Chat and Embeddings Should Be Separate

Knowledge base Q&A happens in two stages, and each stage uses a different model. When you import sources, the system chunks the text and hands it to the embedding model, which converts it into vectors for storage. When you ask a question, the system first uses the same embedding model to turn the question into a vector, finds the most relevant chunks, and then passes those chunks to the chat model to compose an answer.

Stage Which model Endpoint called What goes wrong if misconfigured
Import sources Embedding model embeddings Sources can’t be indexed as vectors, so retrieval fails
Retrieve chunks Same embedding model embeddings After switching models, old and new vectors won’t match
Generate answer Chat model chat or messages It can retrieve chunks, but can’t produce an answer

A Closer Look at How Open Notebook Divides Chat and Embedding Work

The chat model is responsible for understanding the question and writing the answer, so its reasoning ability, context window, and output pricing matter. The embedding model only turns text into vectors, so stability and per-unit cost matter. Within the same knowledge base, the embedding model has to stay consistent from start to finish. The two have completely different selection criteria, and if you force them into the same provider, you’ll often find that the provider doesn’t offer embeddings at all.

There’s another point that’s easy to overlook. During source import, embeddings are calculated only once, while Q&A repeatedly calls the chat model, so the two sides have different spending patterns. Once you configure them separately, you can pick a cost-effective model for chat and a cheap, stable model for embeddings, and later upgrade either side independently.

open-notebook-notebooklm-alternative-separate-chat-embedding-en-image-1


Open Notebook Provider Matrix: Which Line Has Embedding?

Open Notebook’s README includes a provider capability matrix. Before you decide how to configure things, take a close look at which capabilities each provider actually supports:

Provider LLM Chat Embedding Speech-to-Text Text-to-Speech
OpenAI Compatible Supported Supported Supported Supported
Anthropic Supported Not supported Not supported Not supported
Anthropic Compatible Supported Not supported Not supported Not supported
DeepSeek Supported Not supported — —

As the matrix shows, Anthropic and Anthropic Compatible only provide LLM — embedding, speech-to-text, and text-to-speech are all outside their supported scope. DeepSeek also only has LLM, with no embedding. This is how these providers behave in Open Notebook; it doesn’t mean no other models have embedding. The OpenAI Compatible line supports all four capabilities, so as long as the endpoint you configure really offers an embeddings endpoint, one line can cover both chat and embedding.

Open Notebook Quick Start: Hook Your Notebook Library Up to Your Own Key

Step 1: Deploy Open Notebook and Set the Encryption Key

Open Notebook is MIT-licensed and a fairly typical open-source, self-hosted project. Just deploy it on your own machine or server following the repo README — the license is permissive enough for personal use and modifications. Before starting up, take care of these items:

  • Set the environment variable OPEN_NOTEBOOK_ENCRYPTION_KEY to encrypt the API keys saved in the UI.
  • Generate a random string yourself for this value. The README explicitly warns against using the public default placeholder.
  • API keys go in the web UI, not in config files — that makes them easy to swap and keeps them from accidentally getting committed to the repo.
  • Your data stays on your machine, but if the models you call are in the cloud, the relevant snippets still get sent to the model service during Q&A. So it isn’t a fully offline setup by default; if you need offline, you’ll have to swap in local models.

Configure Embeddings Yourself: Pick OpenAI Compatible in Open Notebook

Set up embeddings first, since you’ll need them as soon as you import content. Add a provider in the Open Notebook UI, choose OpenAI Compatible as the type, and fill it in like this:

  • Base URL: https://api.apiyi.com/v1
  • API Key: a key created in the APIYI (apiyi.com) console
  • Embedding model ID: text-embedding-3-small
  • If you need higher retrieval quality, you can switch to text-embedding-3-large

APIYI’s model list shows that text-embedding-3-small exposes both chat and embeddings endpoints, and Open Notebook uses the embeddings one. Once you’ve picked an embedding model, try not to change it mid-way. Vectors from different models can’t be mixed for retrieval, so switching models means re-embedding everything you’ve already imported.

Asking Your Documents: How to Fill In the Chat Model in Open Notebook

For chat, you can keep using the same OpenAI Compatible provider — just put a different ID in the chat model slot:

  • Base URL: again https://api.apiyi.com/v1
  • Chat model ID: qwen3.8-flash
  • Alternative chat model: gpt-6-luna

According to the APIYI (apiyi.com) model page, qwen3.8-flash supports a 1M context and up to 131072 output tokens, accepts text, images, and video as input, and offers the chat and messages endpoints. When you Q&A over your library, retrieved snippets get stitched into the context, and a long context lets you carry more source text at once. Note that it has no embeddings endpoint — you can’t use it for the embedding slot. That’s the most direct reason chat and embeddings have to be configured separately.

If you prefer Claude, you can switch chat to an Anthropic or Anthropic Compatible provider. But the embedding slot still needs to keep the OpenAI Compatible + text-embedding-3-small setup above — in other words, a separate key just for embeddings.

Config item Embedding slot Chat slot
Provider type OpenAI Compatible OpenAI Compatible / Anthropic both work
Base URL https://api.apiyi.com/v1 Same as left, or an Anthropic endpoint
Model ID text-embedding-3-small qwen3.8-flash
Can you swap it mid-way? Switching means rebuilding the index Swappable anytime
Local-style providers Require a Base URL Require a Base URL

🚀 Quick start: A single key covers both the chat and embedding slots. I’d suggest first using the free test quota at APIYI apiyi.com to import a few PDFs and confirm that retrieval and answers work, then import your whole library.


Open Notebook cost estimation: paying by token

The prices below are from the APIYI model list as of 2026-11-30. All prices are in USD per million tokens; actual pricing is subject to the platform’s model list:

Model Use case Input Output Cache read Available platform
text-embedding-3-small Embedding 0.02 0.02 — APIYI
text-embedding-3-large Embedding 0.13 0.13 — APIYI
qwen3.8-flash Chat 0.114 0.3876 0.01425 APIYI
gpt-6-luna Chat 0.1 (0.2 for input over 272000) 0.5 0.01 APIYI

With these prices, you can do a rough calculation. Suppose your knowledge base has 10 million tokens in total. Embedding all of it once with text-embedding-3-small costs about $0.20. After that, for each question, if you bring in 20,000 tokens of retrieved snippets and output 1,000 tokens, qwen3.8-flash costs about $0.0027 per query. This is just an estimate based on unit prices; actual costs also depend on chunk size and the number of retrieved items.

Overall, embedding is a one-time cost, and the main expense comes from repeated Q&A. Choosing the right chat model saves more money than agonizing over embedding unit prices. gpt-6-luna has tiered input pricing: input over 272000 tokens per request is billed at 0.2. If you’re used to stuffing in large amounts of source text at once, do the math before choosing it.

open-notebook-notebooklm-alternative-separate-chat-embedding-en-image-2

💰 Data note: The unit prices in the chart above come from the APIYI apiyi.com model list. By switching chat models under the same endpoint, you can directly compare Q&A costs across models.


Frequently Asked Questions (FAQ)

Q1: What is Open Notebook, and can it completely replace NotebookLM?

Open Notebook is an open-source, self-hostable knowledge base Q&A tool that describes itself as an open-source implementation of NotebookLM. It supports PDFs, videos, audio, web pages, and Office documents. It covers core use cases like importing sources and asking questions, but it doesn’t guarantee one-to-one feature parity between the two — what you get depends on the version you deploy.

Q2: Why can’t I put a chat model directly in the embedding field?

The embedding field calls the embeddings endpoint. Chat models like `qwen3.8-flash` only provide chat and messages endpoints, so putting one there won’t generate vectors. For embeddings, use a dedicated embedding model like `text-embedding-3-small`.

Q3: If I use Anthropic for chat, what about embeddings?

In Open Notebook, Anthropic and Anthropic Compatible only have LLM providers, not embeddings. You can use Anthropic for chat and set up a separate OpenAI Compatible provider for embeddings. For example, set Base URL to `https://api.apiyi.com/v1`, model to `text-embedding-3-small`, and use an API key from APIYI apiyi.com.

Q4: Can I change the embedding model later?

Yes, but sources you’ve already imported will need to be re-embedded. Vectors from different embedding models can’t be mixed, so it’s best to decide on the embedding model before importing a large batch of sources.

Q5: If all my sources are stored locally, does that mean it’s fully offline?

Not by default. Your sources are stored on your machine, but when you use cloud models, your questions and retrieved snippets are sent to the model service. To go offline, switch both chat and embeddings to local providers and fill in their Base URLs.

Q6: Where are API keys stored, and are they secure?

Keys are entered in the UI and aren’t written to config files. Saved keys are encrypted with `OPEN_NOTEBOOK_ENCRYPTION_KEY`; make sure you generate your own random value and don’t reuse the public default placeholder. For everyday testing, you can create a separate key just for Open Notebook on APIYI apiyi.com, and if something goes wrong, you can simply disable that one key.


Key Takeaways: Replacing NotebookLM with Open Notebook

  • Two stages, two models: Embedding models handle ingestion and retrieval, chat models handle answering — configure them separately.
  • Prefer OpenAI Compatible: This route supports both LLM and embeddings, so a single key covers everything.
  • Anthropic routes lack embeddings: Anthropic and its compatible routes only offer LLM, so embeddings need a separate key.
  • Settle on embeddings first: Swap embedding models halfway through and you’ll have to re-index everything you’ve already imported.
  • Costs mostly come from Q&A: Embedding is a one-time expense; the per-token price of the chat model has a bigger impact on your total bill.
  • Don’t forget the encryption variable: Generate your own OPEN_NOTEBOOK_ENCRYPTION_KEY instead of using the default placeholder.

Summary

When you’re replacing NotebookLM with Open Notebook, the key is to think through two things clearly:

  1. Configure them separately: Put text-embedding-3-small in the embedding field and qwen3.8-flash in the chat field — each slot does its own job.
  2. Know what your provider can do: OpenAI Compatible supports all four capabilities, while Anthropic and Anthropic Compatible only handle LLM.
  3. Self-hosting isn’t the same as offline: Your data lives locally, but chunks still get sent out when you call a cloud model — switch to a local model if you need true offline operation.

I’d suggest running the whole pipeline end to end with a small amount of data first, then doing bulk imports. With a single key from APIYI (apiyi.com), you can set up chat and embeddings together, then switch chat models as needed and compare results.

📚 References

  1. GitHub – Open Notebook: Project repository and README

    • Link: github.com/lfnovo/open-notebook
    • Notes: Covers the provider capability matrix, encrypted environment variable instructions, and deployment methods
  2. APIYI Model & Pricing List: Model IDs, endpoints, and unit prices

    • Link: docs.apiyi.com/models.md
    • Notes: The pricing data in this article was read on 2026-11-30; always refer to the platform’s latest list for actual values

Author: APIYI Technical Team
Technical Support: If you run into any issues during configuration, feel free to reach out to us via the APIYI official website homepage.

Related Articles

Leave a Comment