• STRUCTURE
  • REASONING
  • RETRIEVAL
  • HUMAN

How to build knowledge graphs from documents with your agent

Connect your files to Cognee and let your agent map the connections between your data points.

Ask AI about this page

Our technology reaches across leading technology and enterprise teams.

  • Amazon
  • NVIDIA
  • Red Hat
  • Fidelity Investments
  • Intuit
  • OLX Brasil
  • Writesonic
  • Artium
  • Trolley
Bunny World Voxel Workspace

Short answer

How can I turn my text files into a knowledge graph?

You feed your raw documents into the MCP, and your agent extracts entities and their relationships to build a structured graph. This gives your agent a map of how different concepts in your files actually relate to one another.

The results of a structured graph.

Where your data lands.

Once your agent processes your files, you get a structured map of information.

STRUCTURE

Entity networks

Your agent identifies key people, places, and concepts. It turns a flat pile of text into a web of interconnected data.

REASONING

Logical connections

Because relationships are mapped, your agent can follow paths between distant ideas. This makes complex reasoning much more accurate.

RETRIEVAL

Contextual search

Instead of matching keywords, your agent understands the context of a query. It finds information based on how things are linked.

HUMAN

Manual review

You can inspect the extracted relationships to ensure the logic holds up. You decide which connections are meaningful enough to keep.

The workflow

What your agent does when the data arrives.

Your agent moves from raw text to a navigable map of knowledge.

  1. Ingest text

    Your agent takes your unstructured files and prepares them for processing.

    cognee_add_data
  2. Extract entities

    Your agent scans the text to find specific subjects and objects.

    cognee_cognify
  3. Map relationships

    Your agent identifies how those entities interact or relate to each other.

    cognee_cognify
  4. Finalize graph

    The system completes the structured network for your agent to use.

    cognee_cognify

Vinkius Agentic Execution Platform

State the outcome. Agents take it from there.

You don't have to drive this run by hand. Inside the Vinkius Agentic Execution Platform, agents pick up the task above and carry it to the end: you set the limits, you watch the steps, you keep all decisions.

Run it in Vinkius

Agents carry the task to the end

Agents execute Cognee tasks from end to end inside the Vinkius Agentic Execution Platform: set the outcome, and the steps run.

Take it to any compatible AI

One connection, any client

Same connection follows you to ChatGPT, Claude, Gemini and any other client you love. Switch whenever you want: your connection, your permissions and your record move with you.

Spaces

One Space per activity

A Space gathers the context, tools and tasks of one activity, so you coordinate several agents at once and follow each execution as it happens.

Limits

Autonomy inside limits you set

Permissions and spending limits are yours to define. Agents halt for your approval on anything sensitive, and you choose how far autonomy goes, step by step or end to end.

Record

All steps, on the record

Each action your agents take lands in a signed audit trail. Results are verified, mistakes are learned from, and an emergency stop is one click away.

Models

Included in your plan

A curated selection of AI models is included in your plan, and you can add your own through BYOK whenever you prefer.

Try it

Copy these to start.

Use these prompts to kick off the graph building process.

Starting points

Swap the bracketed text for your specific file paths or folder names.

Cognee Connector

You're all set. Choose your MCP client and follow the setup instructions.

Connector linkhttps://edge.vinkius.com/vk_preview_c6i3hXOYfoGrkpkYTLcBWkNZG3FKUa2WjFOiOwHJ/mcp

Claude Desktop

Follow the steps below to connect in seconds.

  1. 1In Claude Desktop, open Settings → Connectors.
  2. 2Click “Add custom connector” and paste the connector link above as the remote MCP server URL.
  3. 3Click Add and start a new chat, Cognee capabilities are ready to use.
Configuration · claude_desktop_config.jsonCopy
{
  "mcpServers": {
    "cognee-mcp": {
      "url": "https://edge.vinkius.com/vk_preview_c6i3hXOYfoGrkpkYTLcBWkNZG3FKUa2WjFOiOwHJ/mcp"
    }
  }
}
Copy into chat04
  • 01

    Add these research papers to my knowledge base: [path/to/folder]

  • 02

    Cognify the data I added from [filename.txt] so I can ask questions about it.

  • 03

    Look at the entities in my project notes and tell me how [Person A] is connected to [Project B].

  • 04

    Build a knowledge graph from my legal documents in [directory] and find all conflicting clauses.

  • Claude
  • ChatGPT
  • Cursor
  • VS Code
  • Windsurf
  • Claude Code
  • JetBrains
  • Cline

Start here

Connect Cognee once, then ask.

One click connects the MCP to your client. Your credentials stay encrypted, and you can start building graphs immediately.

Connect Cognee to your agent

FAQ

How the graph building behaves.

  • 01

    Can your agent delete my original files?

    No. The tools only read and process your data to build the graph. They cannot delete or modify your files.

  • 02

    Does your agent decide which relationships are important?

    Your agent proposes the connections it finds, but you decide which parts of the graph are useful.

  • 03

    Can I use this with any text file?

    Yes, as long as the text is unstructured and readable, your agent can process it into entities.

  • 04

    Will this replace my existing database?

    No. This creates a structured layer on top of your documents to help your agent understand them better.

  • 05

    Can your agent edit my documents to add the graph data?

    No. Your agent only reads the data to build the graph; it does not write back to your source files.

  • More questions about Cognee? The Connector page answers them. See everything the Cognee Connector can do

Building with AI? Ship this whole workflow in your product.

Vinkius Connect is the connectivity layer for AI builders. All the capabilities used on this page, from Cognee to thousands more, arrive through one SDK, already maintained for you. One Application, unlimited seats, each with their own connectors and credentials, isolated and never exposed to Vinkius. No OAuth flows to write, no tokens to store, no APIs to chase.

Explore Vinkius Connect

TypeScript · Python · Java · Go · C# · PHP · Rust

  • 01

    Your customers bring their own keys.

    Each user connects their own apps and keeps their own credentials. Vinkius only sees the identifier your backend sends.

  • 02

    Whole catalog, kept current.

    Cognee plus thousands more, maintained and growing daily. No integrations to write, no token storage, no OAuth plumbing.

  • 03

    Any agent, any model.

    Capabilities land as framework-neutral objects, with adapters for OpenAI, Anthropic, Gemini, the Vercel AI SDK, LangChain and more.

Connect Cognee to Claude, Cursor, ChatGPT & more

From idea to done

See what gets done when the agents take over the busywork

Each workflow on this page runs on the same platform. Connect your tools once, and your agents keep working in any AI you trust.