Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morphik Code Exec Demo

This demo ingests Excel files into Morphik and runs an OpenAI Responses API agent that can retrieve chunks, list documents, pull page/chunk ranges, and load files into the code interpreter.

Prerequisites

  • Python 3.11+
  • uv installed
  • Morphik URI
  • OpenAI API key

Setup

  1. Create a .env file with your credentials:
MORPHIK_URI="morphik://<owner_id>:<token>@<host>"
OPENAI_API_KEY="sk-..."
# Optional: model override
OPENAI_MODEL="gpt-4.1"
  1. Install dependencies:
uv sync

Run the demo (ingest -> status -> agent)

  1. Ingest files from files/:
uv run ingest.py
  1. Check ingestion status:
uv run status.py
  1. Run the agent:
uv run agent.py

The agent will prompt for a query and write the final response to response.md.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages