Current section
Files
Jump to
Current section
Files
portfolio_index
mix.exs
mix.exs
defmodule PortfolioIndex.MixProject do
use Mix.Project
@version "0.3.1"
@source_url "https://github.com/nshkrdotcom/portfolio_index"
def project do
[
app: :portfolio_index,
version: @version,
elixir: "~> 1.15",
start_permanent: Mix.env() == :prod,
deps: deps(),
description: description(),
package: package(),
docs: docs(),
name: "PortfolioIndex",
source_url: @source_url,
aliases: aliases(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"},
plt_add_apps: [:mix],
flags: [:error_handling, :unknown, :unmatched_returns]
],
preferred_cli_env: [
"test.watch": :test,
coveralls: :test,
"coveralls.html": :test
],
test_coverage: [tool: ExCoveralls]
]
end
def application do
[
extra_applications: [:logger],
mod: {PortfolioIndex.Application, []}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
# Core dependency
{:portfolio_core, "~> 0.3.1"},
# Database adapters
{:ecto_sql, "~> 3.11"},
{:postgrex, "~> 0.17"},
{:pgvector, "~> 0.2"},
{:hnswlib, "~> 0.1.6"},
# Graph database
{:boltx, "~> 0.0.6"},
# AI/LLM
{:gemini_ex, "~> 0.8.8"},
{:claude_agent_sdk, "~> 0.7.2"},
{:codex_sdk, "~> 0.4.5"},
# HTTP clients for APIs
{:req, "~> 0.4"},
{:finch, "~> 0.18"},
# Pipeline processing
{:broadway, "~> 1.0"},
{:gen_stage, "~> 1.2"},
# Rate limiting
{:hammer, "~> 6.1"},
# Telemetry
{:telemetry, "~> 1.2"},
{:telemetry_metrics, "~> 0.6"},
{:telemetry_poller, "~> 1.0"},
# JSON
{:jason, "~> 1.4"},
# Configuration validation
{:nimble_options, "~> 1.1"},
# Dev/test only
{:ex_doc, "~> 0.31", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.4", only: [:dev, :test], runtime: false},
{:mox, "~> 1.1", only: :test},
{:excoveralls, "~> 0.18", only: :test},
{:bypass, "~> 2.1", only: :test}
]
end
defp description do
"Production adapters and pipelines for PortfolioCore. Vector stores, graph stores, embedders, Broadway pipelines, and advanced RAG strategies."
end
defp package do
[
name: "portfolio_index",
licenses: ["MIT"],
links: %{"GitHub" => @source_url},
maintainers: ["NSHKR"],
files: ~w(lib assets .formatter.exs mix.exs README.md LICENSE CHANGELOG.md)
]
end
defp docs do
[
main: "readme",
source_url: @source_url,
source_ref: "v#{@version}",
assets: %{"assets" => "assets"},
logo: "assets/portfolio_index.svg",
extras: ["README.md", "CHANGELOG.md", "LICENSE"],
groups_for_modules: [
"Vector Store Adapters": ~r/PortfolioIndex\.Adapters\.VectorStore\./,
"Graph Store Adapters": ~r/PortfolioIndex\.Adapters\.GraphStore\./,
Embedders: ~r/PortfolioIndex\.Adapters\.Embedder\./,
LLMs: ~r/PortfolioIndex\.Adapters\.LLM\./,
Chunkers: ~r/PortfolioIndex\.Adapters\.Chunker\./,
Rerankers: ~r/PortfolioIndex\.Adapters\.Reranker\./,
Pipelines: ~r/PortfolioIndex\.Pipelines\./,
"RAG Strategies": ~r/PortfolioIndex\.RAG\./,
GraphRAG: ~r/PortfolioIndex\.GraphRAG\./
]
]
end
defp aliases do
[
quality: ["format --check-formatted", "credo --strict", "dialyzer"],
"test.all": ["quality", "test"],
"ecto.setup": ["ecto.create", "ecto.migrate"],
"ecto.reset": ["ecto.drop", "ecto.setup"]
]
end
end