Use cases / Knowledge Base & Company Brain

Memory for knowledge bases

Internal wikis and runbooks change every week. When old guides sit next to new ones, standard search pulls the wrong page and the assistant gives outdated instructions. / ml keeps your company docs current, filters out weak matches, and links every answer to the live page.

Main Problem Solved Old docs outranking new updates
Accuracy Filters out weak search matches
Token Savings 80% fewer tokens vs full-doc dumps
Lookup Speed ~10 ms

What you are building

How it works
1. Company docs
GitHub, Notion, Confluence
Runbooks, policies, and onboarding guides
2. / ml Memory
Finds the current doc
Filters out old drafts and weak matches
3. Employee answer
Direct answer + link
Cites the live page, or says when it doesn't know

An authoritative enterprise knowledge assistant that answers technical, operational, and organizational questions for employees across every department:

  • "What is the step-by-step procedure for rolling back a canary deployment in production?"
  • "What is our updated expense reimbursement limit for customer dinners?"
  • "How do we configure single sign-on (SSO) for new contractors joining the data team?"
  • "Who approved the updated security incident response guidelines?"

In growing organizations, documentation is spread across hundreds of separate repositories, wikis, and cloud folders. / ml synthesizes this scattered corpus into a coherent knowledge graph that reflects your current operating reality.

Why memory decides whether it works

Standard vector search breaks down on internal docs because wikis constantly change:

  • Old docs outrank new updates: A long 3-year-old runbook has more keyword matches than yesterday's short update, so RAG serves the outdated procedure.
  • Guessing when docs are missing: When no policy exists, vector search returns weak matches and the model invents an answer.
  • Missing citations: Engineers cannot trust an operational answer without a direct link to the source doc and revision.
  • Draft bleed: Unfinished notes mix with approved company policies unless scoped by status and department.

What / ml provides

Easy Doc Updates & Cleanup

Update changed procedures in place, merge duplicate guides, or delete retired docs in 6.41 ms so old instructions never resurface.

No Guessing When Docs Are Missing

Set a minimum match score so weak search results are dropped, letting your assistant say "I don't know" when a policy doesn't exist.

Direct Link to Every Doc

Every answer includes the page URL, section title, and update history so employees can open the source doc in one click.

Department & Role Filters

Tag docs by team, project, or access level so each department only searches policies they are allowed to read.

Cost and token economics

Standard search pastes 5 to 10 long document chunks into every prompt, burning over 7,000 tokens even for simple policy questions.

Tokens Used Per Search

Pasting long doc chunks: ~7,400 tokens ($0.037 per question)

/ ml relevant facts only: ~1,250 tokens ($0.0062 per question)

Result: 83% lower token cost and cleaner, faster answers.

For a 1,000-person company asking 150,000 internal questions a month, / ml saves over $4,600 monthly in model costs.

Getting there

1

Sync your docs and runbooks

Send handbooks, wiki pages, and markdown files from GitHub, Notion, or Confluence to / ml with their page URL and last-updated date.

2

Tag docs by team and access level

Add simple tags like department: engineering or status: approved so drafts and private docs stay separated.

3

Search with team filters and match scores

When an employee asks a question, search / ml with their team filter and a minimum score so weak matches are ignored.

4

Include the doc link in every answer

Have your assistant answer strictly from the returned facts and show the doc_url link so readers can check the source page.

Code example

Ingesting updated infrastructure runbooks and querying with metadata filters and source attribution:

import os
from slashml import Memory

mem = Memory(api_key=os.environ["SLASHML_API_KEY"])

# 1. Ingest an updated production rollback runbook
mem.add(
    "Production Rollback Runbook: To revert a canary deploy, run `kubectl rollout undo deployment/api-server -n prod`. Do not restart pods manually.",
    user_id="company-kb",
    metadata={
        "doc_url": "https://wiki.internal.net/runbooks/rollback-v3",
        "title": "Production Rollback v3",
        "department": "engineering",
        "updated_at": "2026-10-25"
    }
)

# 2. Query company brain for active procedure with metadata filter
result = mem.search(
    "How do I rollback a canary deploy in production?",
    user_id="company-kb",
    filters={"department": "engineering"}
)

if not result["results"]:
    print("I cannot find documented instructions in our company knowledge base.")
else:
    for item in result["results"]:
        meta = item.get("metadata") or {}
        print(f"Procedure: {item['memory']} (score: {item['score']:.3f})")
        print(f"Last Updated: {meta.get('updated_at')}")
        print(f"Documentation Link: {meta.get('doc_url')}")

Frequently asked questions

Q How do we replace an outdated runbook or policy?

You can update a doc in place (which saves the previous version in its history), merge overlapping pages, or delete retired docs in 6.41 ms.

Q How do we separate docs across different departments?

Tag each doc with its team, project, or access level. When someone searches, filter by their department so they only see docs meant for them.

Q How do we connect Confluence, Notion, or GitHub?

Your sync script or CI action sends markdown or plain text directly to / ml using our Python SDK, TypeScript SDK, or REST API, along with the page URL and date.

Q How does / ml stop the assistant from guessing when no doc exists?

Standard vector search always returns the closest text even when it's unrelated. / ml lets you set a minimum match score and rerank results, so weak matches are dropped before they ever reach your model.

Build your authoritative company brain

Give your teams an enterprise knowledge assistant that never relies on obsolete runbooks or invents missing rules.