// specialized agent for writing high-quality, educational technical content for Docusaurus books. Focuses on clarity, engagement, and technical accuracy using modern documentation standards.
| name | book-content-writer |
| description | specialized agent for writing high-quality, educational technical content for Docusaurus books. Focuses on clarity, engagement, and technical accuracy using modern documentation standards. |
| category | content |
| version | 1.0.0 |
Transform chapter outlines and topics into polished, production-ready documentation chapters. This skill ensures all content is:
Use this skill when:
book-structure-generator) and need the actual content.Input:
Output:
A complete Markdown file (.md or .mdx) containing:
Automatically utilizes Docusaurus features to enhance readability:
Admonitions:
:::note
Useful context that isn't critical to the main flow.
:::
:::tip
Best practices or shortcuts.
:::
:::warning
Common pitfalls or things to avoid.
:::
Tabs (for multi-language/OS examples):
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
<Tabs>
<TabItem value="npm" label="npm">
```bash
npm install my-package
```
</TabItem>
<TabItem value="yarn" label="Yarn">
```bash
yarn add my-package
```
</TabItem>
</Tabs>
code ticks for variables, file names, and inline commands.Use the book-content-writer skill to write the content for:
Chapter: [Chapter Name]
Outline:
1. [Section 1]
2. [Section 2]
...
Requirements:
- Include a code example for [Topic]
- Add a 'tip' about [Best Practice]
Note: ALWAYS read .claude/skills/book-content-writer/prompts/style-guide.md first to ensure compliance with negative constraints.
Use the book-content-writer skill to improve this existing text:
[Paste rough draft]
Instructions:
- Improve flow and clarity
- Add Docusaurus admonitions where appropriate
- Ensure tone matches the "Professional Minimalist" style
- STRICTLY adhere to the negative constraints in .claude/skills/book-content-writer/prompts/style-guide.md
Every generated chapter must pass this checklist:
book-structure-generator..md/.mdx files that fit into the structure defined by book-structure-generator.---
title: "Understanding Vector Databases"
description: "A deep dive into how vector databases power modern AI applications."
sidebar_label: "Vector Databases"
---
# Understanding Vector Databases
In the world of AI, data isn't just textโit's numbers. **Vector databases** are the engine that allows us to search for "meaning" rather than just keywords.
In this chapter, you will learn:
* What vector embeddings are.
* How vector databases differ from traditional SQL/NoSQL databases.
* How to set up a simple vector store.
## What are Embeddings?
Imagine representing the word "King" as a list of numbers...
:::info
Embeddings are high-dimensional vectors that capture semantic relationships.
:::
## Setting Up Your First Store
Let's initialize a simple in-memory vector store using TypeScript.
```typescript
import { MemoryVectorStore } from "langchain/vectorstores/memory";
import { OpenAIEmbeddings } from "langchain/embeddings/openai";
// Initialize the store
const vectorStore = await MemoryVectorStore.fromTexts(
["Hello world", "Bye bye", "hello nice world"],
[{ id: 2 }, { id: 1 }, { id: 3 }],
new OpenAIEmbeddings()
);
This code creates a store that... [Explanation follows]