Packages

HexDocs MCP is a project that provides semantic search capabilities for Hex package documentation, designed specifically for AI applications. It downloads, processes, and generates embeddings from Hex package documentation and provides a Model Context Protocol (MCP) server for searching.

Current section

Files

Jump to
hexdocs_mcp priv repo migrations 20250402000001_create_embeddings_table.exs
Raw

priv/repo/migrations/20250402000001_create_embeddings_table.exs

defmodule HexdocsMcp.Repo.Migrations.CreateEmbeddingsTable do
use Ecto.Migration
alias HexdocsMcp.Migrations
def up do
# Using the shared migrations module to create tables
Migrations.create_embeddings_table()
|> Enum.each(fn sql -> execute(sql) end)
end
def down do
# Using the shared migrations module to drop tables
Migrations.drop_embeddings_table()
|> Enum.each(fn sql -> execute(sql) end)
end
end