[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111824":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":26,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},111824,"venn-vdm","markrussinovich\u002Fvenn-vdm","markrussinovich","Venn: typed decisions over the embeddings you already have. Route, score, filter and compare with a small local decision layer and heads you train in one call.","https:\u002F\u002Fmarkrussinovich.github.io\u002Fvenn-vdm\u002F",null,"Python",75,6,56,10,0,3,14,1,45.44,"MIT License",false,"main",true,[],"2026-11-16 22:57:18","2026-11-23 18:42:35","\u003Cimg src=\"docs\u002Fmedia\u002Fvenn-logo.svg\" alt=\"Venn logo: two overlapping circles\" width=\"88\" align=\"right\">\n\n# Venn\n\n\u003C!-- docs-navigation:start -->\n[Documentation](docs\u002FREADME.md) · [Get started](docs\u002Fgetting-started.md) · [Concepts](docs\u002Fconcepts.md) · [Venn vs Jev](docs\u002Fvenn-and-jev.md) · [Examples](examples\u002FREADME.md) · [Task recipes](docs\u002Fcookbooks.md) · [Adapters](docs\u002Fadapters.md) · [API](docs\u002Fapi.md) · [Results](docs\u002Fevidence.md)\n\n\u003Cdetails>\n\u003Csummary>Browse all documentation\u003C\u002Fsummary>\n\n**Project home:** **Home**\n\n**Start here:** [Documentation overview](docs\u002FREADME.md) · [Getting started](docs\u002Fgetting-started.md) · [Installation](docs\u002Finstallation.md) · [Concepts](docs\u002Fconcepts.md) · [Venn vs Jev](docs\u002Fvenn-and-jev.md)\n\n**Task guides:** [Task recipes](docs\u002Fcookbooks.md) · [Store adapters](docs\u002Fadapters.md) · [Outcome stores](docs\u002Foutcome-api.md)\n\n**Examples:** [Choose an example](examples\u002FREADME.md) · [Hot dog image classifier](examples\u002Fhotdog\u002FREADME.md) · [Precedent Desk](examples\u002Fprecedent_desk\u002FREADME.md) · [Wine predictor](examples\u002Fwine\u002FREADME.md) · [Audio classifier](examples\u002Faudio\u002FREADME.md) · [Screen-only arena](docs\u002Farena-example.md) · [Demos and videos](docs\u002Fdemos.md)\n\n**Reference:** [API reference](docs\u002Fapi.md) · [Design rationale](docs\u002Fdesign.md) · [Venn 1 model card](docs\u002Fmodel-card.md)\n\n**Results and limits:** [Performance and cost](docs\u002Fperformance.md) · [VennSpace-1](docs\u002Fbenchmark.md) · [Results and evidence](docs\u002Fevidence.md) · [Reproduction](docs\u002Freproduction.md) · [Semantic boundary findings](docs\u002Fredteam.md) · [Limitations](docs\u002Flimitations.md) · [Comparison video methods](docs\u002Fsame-memory-video.md) · [Comparison notebooks and renderer](examples\u002Fsame_memory_video\u002FREADME.md)\n\n**Project:** [Policies](docs\u002Fpolicies.md) · [Licenses and attribution](docs\u002Flicenses.md) · [Contributing to Venn](CONTRIBUTING.md)\n\n**Maintainers:** [Maintainer guide](docs\u002Fmaintainers\u002Fmaintaining.md) · [Documentation site](docs\u002Fmaintainers\u002Fwebsite.md) · [Release checklist](docs\u002Fmaintainers\u002Frelease-checklist.md) · [Publishing the Python package](docs\u002Fmaintainers\u002Fpypi.md) · [Publishing the decision head](docs\u002Fmaintainers\u002Fpublishing-the-head.md) · [Development evidence](docs\u002Fmaintainers\u002Fdevelopment-evidence.md) · [Comparative evaluation protocol](docs\u002Fmaintainers\u002Fevaluation-plan.md) · [License audit notes](docs\u002Fmaintainers\u002Flicense-audit.md)\n\n\u003C\u002Fdetails>\n\n**Project \u002F Home**\n\u003C!-- docs-navigation:end -->\n\n\u003C!-- docs-contents:start -->\n\u003Cdetails>\n\u003Csummary>On this page\u003C\u002Fsummary>\n\n- [What you can do](#what-you-can-do)\n- [Venn or Jev?](#venn-or-jev)\n- [Install](#install)\n- [Try it in a minute](#try-it-in-a-minute)\n- [Ask questions about text](#ask-questions-about-text)\n- [Learn more](#learn-more)\n- [Watch it learn to play](#watch-it-learn-to-play)\n- [Project](#project)\n\n\u003C\u002Fdetails>\n\u003C!-- docs-contents:end -->\n\n**A Vector Decision Model: typed decisions over reusable embeddings.**\n\nThe [documentation website](https:\u002F\u002Fmarkrussinovich.github.io\u002Fvenn-vdm\u002F) includes\nthe guides, examples, API reference, results and demo videos. The same\n[documentation](docs\u002FREADME.md) is browsable here or as a\n[local searchable website](docs\u002Fmaintainers\u002Fwebsite.md#preview-locally).\n\nVenn is a Vector Decision Model (VDM), a small decision layer that answers\nstructured questions over embeddings rather than generating text. Give it a\nvector, or text that its frozen reader embeds, and it returns a typed answer:\nwhich team owns this ticket, does this passage belong with these, has the mix\nof incoming requests shifted, which indexed records match a new policy. Because\nit reuses the vectors you have already computed, new questions can run through\nthe small decision layer without another reader pass. The generic head is\n3.15 MB, and existing-vector decisions run on CPU without loading the reader.\n\nWhen a lookup is not enough, the same API trains a small custom head on your\nown data and serves it under the question you were already asking. Your\napplication code does not change: the question names the head, and the answer\ncomes back in the same typed shape. In the Doom arena, a 49,000-parameter head\ncompiled from the game's outcome store played with the store switched off and\naveraged 8.4 kills per game, against 6.2 for the store it learned from.\n\nThe standard text path uses the pinned `venn-1` reader. The outcome API also\naccepts explicitly tagged vectors from other readers; see\n[profiles and compatibility](docs\u002Fconcepts.md#profiles-and-compatibility).\n\n## What you can do\n\n- **Route and classify.** Ask Choice, Score and Noul (yes\u002Fno) questions about\n  text or vectors, with an explicit \"none of these\" option. Requests use the\n  [Decisions API](https:\u002F\u002Fdocs.typesafe.ai\u002Fintroduction) format, with compatibility\n  checked against [these client versions](https:\u002F\u002Fgithub.com\u002Fmarkrussinovich\u002Fvenn-vdm\u002Fblob\u002Fmain\u002Ftests\u002Fclients\u002FREADME.md).\n- **Decide from recorded outcomes.** Point Venn at your own vector store of past\n  cases and their outcomes. It picks the option whose similar past cases went\n  best, and your application writes new outcomes back. No trained head is needed.\n- **Train custom heads through the same API.** Four kinds, all through\n  `register_family` (or `PUT \u002Ffamilies\u002F{name}` over HTTP):\n  - a linear Choice head (`form=\"linear\"`), a multinomial logistic regression on\n    your labeled vectors and the best default for plain classification;\n  - the residual Choice head, which can also answer \"none of these\";\n  - a numeric head (`objective=\"regress\"`) that predicts a score with an 80%\n    interval, from examples or a store's outcomes;\n  - a head compiled from an outcome store that answers `nearest_outcome` without\n    a lookup.\n\n  Choice heads train on every supplied example by default; an explicit split\n  reserves selection and report rows. They choose their settings by\n  cross-validation, grouped by `group_id` when related examples must stay\n  together. Each fits in seconds to minutes on one machine, is saved and reloaded\n  with the service, and answers the same question type the rest of your code\n  already sends. The reader stays frozen; only the head is trained. See the\n  [family cookbook](docs\u002Fcookbooks.md#fit-and-reload-a-local-family), the\n  [linear family cookbook](docs\u002Fcookbooks.md#fit-a-linear-choice-family), the\n  [numeric family cookbook](docs\u002Fcookbooks.md#fit-a-numeric-family) and the\n  [outcome API](docs\u002Foutcome-api.md#compile-the-store-into-a-head).\n- **Work on collections.** Find the nearest labeled reference, spot the\n  intruder in a set, test whether a population has shifted, or stream one\n  question over every row of an index.\n\nA few words you will see throughout: a **reader** is the frozen embedding model; a\n**profile** pins the reader, its revision and the vector format; a **head** is the\nsmall model that turns vectors and a question into an answer; **Noul** is the\nDecisions API's name for a yes\u002Fno question.\n\n## Venn or Jev?\n\nJev evaluates the content and context supplied in a request. Venn lets your\napplication keep and reuse the representation behind its decisions, through\nhistorical cases, custom predictors and collection operations. Its small local\ndecision layer also provides an alternative to running a larger open-source\ndecision model. EmbeddingGemma 2's text-only reader has about 270 million\nparameters; image and audio towers are loaded only when needed.\n\nStart with Jev when useful category descriptions and the item's content carry\nthe answer. Start with Venn when you have useful labeled history, need your own\npredictor, or expect repeated decisions over the same embedded collection.\nRead [Venn and Jev: when to use which](docs\u002Fvenn-and-jev.md) for the trade-offs,\nexamples and results.\n\n\u003C!-- video: venn-same-memory-review -->\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fae29eb8c-ee45-46d1-b21c-9b6d9689ccf5\n\n[Watch the comparison](docs\u002Fsame-memory-video.md) with examples of\nhistorical outcomes, filing conventions and custom predictors.\n\nVenn is a research preview. Probabilities are not calibrated across tasks, and the\n\"none of these\" option is a signal rather than a filter: an off-topic question can\nstill land on a listed option with high confidence. Read the\n[limitations](docs\u002Flimitations.md) before acting on a probability.\n\n## Install\n\nPython 3.12 on Linux or Windows. CPU workflows also run on ARM64, including\nUbuntu under WSL and native Windows; see [platform setup](docs\u002Fgetting-started.md#arm64-and-windows).\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fmarkrussinovich\u002Fvenn-vdm.git venn\ncd venn\npython3.12 -m venv .venv && source .venv\u002Fbin\u002Factivate\npython -m pip install torch --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcpu   # CPU-only PyTorch; omit for CUDA\npython -m pip install .\n```\n\n## Try it in a minute\n\n`venn quickstart` runs on CPU and downloads nothing. It registers a small store\nof past support tickets with their outcomes, then routes a new ticket to the\nteam whose similar tickets went best:\n\n```bash\nvenn quickstart\n```\n\n```json\n{\n  \"answer\": \"account\",\n  \"options\": {\n    \"account\": {\"mean\": 0.9, \"count\": 3, \"evidence_ids\": [\"acct-102\", \"acct-101\", \"acct-103\"]},\n    \"billing\": {\"mean\": 0.4, \"count\": 3, \"evidence_ids\": [\"bill-201\", \"bill-202\", \"bill-203\"]}\n  },\n  \"note\": \"authored vectors, not text embeddings; nothing was downloaded\"\n}\n```\n\nThe same API with your own vectors is in [examples\u002Foutcome_store.py](examples\u002Foutcome_store.py)\nand the [outcome API guide](docs\u002Foutcome-api.md).\n\n## Ask questions about text\n\nText questions use the `venn-1` profile: the EmbeddingGemma 2 reader plus a\n3 MB decision head. Install the reader extra, download both and start the server:\n\n```bash\npython -m pip install '.[embedding]'\nvenn download-embedder      # EmbeddingGemma 2 (Apache-2.0), about 1.49 GB of weights\nvenn serve                  # downloads the venn-1 head on first run\n```\n\nIn another terminal:\n\n```bash\ncurl http:\u002F\u002F127.0.0.1:8000\u002Fapi\u002Falpha\u002Fdecisions -H 'Content-Type: application\u002Fjson' -d '{\n  \"model\": \"venn-1\",\n  \"state\": \"I cannot sign in\",\n  \"questions\": {\"team\": {\"type\": \"choice\", \"instructions\": \"Who owns this ticket?\",\n                          \"criteria\": {\"account\": \"Login or access\", \"billing\": \"Payments\", \"no_match\": null}}}\n}'\n```\n\nThe response names a team, gives its probability and says whether Venn\nabstained. The first text request also loads the reader, which takes a few\nseconds. Later requests avoid that cold load; fresh content still needs embedding. [examples\u002Froute_ticket.py](examples\u002Froute_ticket.py) does the same from\nPython. The [API reference](docs\u002Fapi.md) covers Score, Noul, the space-level\nquestion types, the JavaScript client and the MCP bridge.\n\n## Learn more\n\n- [Documentation overview](docs\u002FREADME.md): choose a path through concepts, guides, examples and reference.\n- [Getting started](docs\u002Fgetting-started.md): install and obtain a first result without model downloads.\n- [Installation](docs\u002Finstallation.md): CPU PyTorch, Windows\u002FARM64 and optional extras.\n- [Example catalog](examples\u002FREADME.md): pick a complete workflow by its prerequisites.\n- [Task recipes](docs\u002Fcookbooks.md) and [outcome stores](docs\u002Foutcome-api.md): build common operations.\n- [Concepts](docs\u002Fconcepts.md) and [API reference](docs\u002Fapi.md): understand the model and request contracts.\n- [Performance and cost](docs\u002Fperformance.md), [evidence](docs\u002Fevidence.md) and [limitations](docs\u002Flimitations.md): assess the results and their scope.\n\n## Watch it learn to play\n\n\u003C!-- video: venn-arena -->\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F42b3ddeb-0c9a-42f3-ad5a-e1d9d8734088\n\nThe arena example drives a ViZDoom player with nothing but Venn's outcome API\nand a FAISS store. Venn embeds each screen, looks up how similar moments turned\nout for each move, and returns the move with the best recorded outcome.\nFinished games are written back to the store. The reader is never trained.\n\nOne more call compiles that store into a head of 49,153 parameters that answers\nthe same question with no lookup. Served alone, the head averaged 8.4 kills per\ngame over 250 scored games against 6.2 for the memory it learned from.\n[Run it yourself](docs\u002Farena-example.md) or read\n[what the video shows](docs\u002Fdemos.md#screen-only-arena-video).\n\nFor text, the [Precedent Desk example](examples\u002Fprecedent_desk\u002FREADME.md) points\nVenn at a support desk's 10,003 closed tickets and routes new ones from them,\nwith precedents, a queue-fit flag and a one-pass backlog sweep. On the same\n3,080 public test tickets the closed tickets scored 93.6% against 79.7% for a\nmatched run of Jev 1.13, and the pattern repeats on a second dataset.\n[Video, 2 minutes 36 seconds](https:\u002F\u002Fgithub.com\u002Fmarkrussinovich\u002Fvenn-vdm\u002Freleases\u002Fdownload\u002Fmedia-v1\u002Fvenn-precedent-desk.mp4).\n\n## Project\n\n- Code is MIT-licensed. The EmbeddingGemma 2 reader and the `venn-1` head have\n  their own terms; see [licenses](docs\u002Flicenses.md).\n- The distribution is named `venn-vdm` and the import name is `venn`. Do not\n  install it alongside the unrelated `venn` package.\n- Cite with [CITATION.cff](CITATION.cff). See [contributing](CONTRIBUTING.md)\n  and [security](SECURITY.md).\n\n\u003C!-- docs-pager:start -->\n---\n\n[Next: Documentation overview →](docs\u002FREADME.md) · [Documentation home](docs\u002FREADME.md)\n\u003C!-- docs-pager:end -->\n","Venn 是一个轻量级向量决策模型（VDM），用于在已有嵌入（embeddings）基础上执行类型化决策任务。它支持路由、打分、过滤与对比等操作，通过本地化的小型决策层和可一键训练的决策头（decision heads）实现，无需重新训练底层嵌入模型。技术上采用类型安全的决策接口，兼容多种嵌入源（如文本、图像、音频），强调低开销、可复用性与语义一致性。适用于需要快速构建嵌入驱动决策逻辑的场景，例如多模态分类、语义检索过滤、A\u002FB 候选排序、合规性检查及 RAG 中的动态路由等。",2,"2026-11-24 04:41:54","CREATED_QUERY"]