├── .gitignore ├── LICENSE ├── README.md ├── api ├── .env.example ├── BUILDING_WITH_CORTEX.md ├── Makefile ├── README.md ├── USAGE.md ├── app │ ├── __init__.py │ ├── auth.py │ ├── config.py │ ├── database.py │ ├── main.py │ ├── models.py │ ├── routers │ │ ├── __init__.py │ │ ├── auth.py │ │ ├── health.py │ │ └── memory.py │ └── services │ │ ├── __init__.py │ │ └── cortex_service.py ├── docker │ ├── Dockerfile │ └── docker-compose.yml └── requirements.txt ├── cortex ├── __init__.py ├── collection_manager.py ├── constants.py ├── embedding_manager.py ├── llm_controllers │ └── llm_controller.py ├── ltm.py ├── memory_note.py ├── memory_system.py ├── processors.py ├── retrieval │ └── retrievers.py └── stm.py ├── evaluation ├── Makefile ├── README.md ├── evals.py ├── generate_scores.py ├── metrics │ ├── llm_judge.py │ └── utils.py ├── prompts.py ├── results │ ├── cortex_evaluation_comprehensive_analysis.png │ ├── llm_score_vs_top_k.png │ ├── overall_scores_vs_top_k.png │ ├── score_efficiency_vs_top_k.png │ └── token_count_vs_llm_score.png ├── run_experiments.py └── src │ ├── __init__.py │ ├── cortex │ ├── add.py │ ├── dump.py │ └── search.py │ ├── full_context.py │ ├── langmem.py │ ├── memzero │ ├── add.py │ └── search.py │ ├── openai │ └── predict.py │ ├── rag.py │ ├── utils.py │ └── zep │ ├── add.py │ └── search.py ├── main.py ├── poetry.lock ├── prem.png └── pyproject.toml /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/README.md -------------------------------------------------------------------------------- /api/.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/.env.example -------------------------------------------------------------------------------- /api/BUILDING_WITH_CORTEX.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/BUILDING_WITH_CORTEX.md -------------------------------------------------------------------------------- /api/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/Makefile -------------------------------------------------------------------------------- /api/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/README.md -------------------------------------------------------------------------------- /api/USAGE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/USAGE.md -------------------------------------------------------------------------------- /api/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/app/auth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/app/auth.py -------------------------------------------------------------------------------- /api/app/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/app/config.py -------------------------------------------------------------------------------- /api/app/database.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/app/database.py -------------------------------------------------------------------------------- /api/app/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/app/main.py -------------------------------------------------------------------------------- /api/app/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/app/models.py -------------------------------------------------------------------------------- /api/app/routers/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/app/routers/auth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/app/routers/auth.py -------------------------------------------------------------------------------- /api/app/routers/health.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/app/routers/health.py -------------------------------------------------------------------------------- /api/app/routers/memory.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/app/routers/memory.py -------------------------------------------------------------------------------- /api/app/services/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /api/app/services/cortex_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/app/services/cortex_service.py -------------------------------------------------------------------------------- /api/docker/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/docker/Dockerfile -------------------------------------------------------------------------------- /api/docker/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/docker/docker-compose.yml -------------------------------------------------------------------------------- /api/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/api/requirements.txt -------------------------------------------------------------------------------- /cortex/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /cortex/collection_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/cortex/collection_manager.py -------------------------------------------------------------------------------- /cortex/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/cortex/constants.py -------------------------------------------------------------------------------- /cortex/embedding_manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/cortex/embedding_manager.py -------------------------------------------------------------------------------- /cortex/llm_controllers/llm_controller.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/cortex/llm_controllers/llm_controller.py -------------------------------------------------------------------------------- /cortex/ltm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/cortex/ltm.py -------------------------------------------------------------------------------- /cortex/memory_note.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/cortex/memory_note.py -------------------------------------------------------------------------------- /cortex/memory_system.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/cortex/memory_system.py -------------------------------------------------------------------------------- /cortex/processors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/cortex/processors.py -------------------------------------------------------------------------------- /cortex/retrieval/retrievers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/cortex/retrieval/retrievers.py -------------------------------------------------------------------------------- /cortex/stm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/cortex/stm.py -------------------------------------------------------------------------------- /evaluation/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/Makefile -------------------------------------------------------------------------------- /evaluation/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/README.md -------------------------------------------------------------------------------- /evaluation/evals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/evals.py -------------------------------------------------------------------------------- /evaluation/generate_scores.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/generate_scores.py -------------------------------------------------------------------------------- /evaluation/metrics/llm_judge.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/metrics/llm_judge.py -------------------------------------------------------------------------------- /evaluation/metrics/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/metrics/utils.py -------------------------------------------------------------------------------- /evaluation/prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/prompts.py -------------------------------------------------------------------------------- /evaluation/results/cortex_evaluation_comprehensive_analysis.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/results/cortex_evaluation_comprehensive_analysis.png -------------------------------------------------------------------------------- /evaluation/results/llm_score_vs_top_k.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/results/llm_score_vs_top_k.png -------------------------------------------------------------------------------- /evaluation/results/overall_scores_vs_top_k.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/results/overall_scores_vs_top_k.png -------------------------------------------------------------------------------- /evaluation/results/score_efficiency_vs_top_k.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/results/score_efficiency_vs_top_k.png -------------------------------------------------------------------------------- /evaluation/results/token_count_vs_llm_score.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/results/token_count_vs_llm_score.png -------------------------------------------------------------------------------- /evaluation/run_experiments.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/run_experiments.py -------------------------------------------------------------------------------- /evaluation/src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /evaluation/src/cortex/add.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/cortex/add.py -------------------------------------------------------------------------------- /evaluation/src/cortex/dump.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/cortex/dump.py -------------------------------------------------------------------------------- /evaluation/src/cortex/search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/cortex/search.py -------------------------------------------------------------------------------- /evaluation/src/full_context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/full_context.py -------------------------------------------------------------------------------- /evaluation/src/langmem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/langmem.py -------------------------------------------------------------------------------- /evaluation/src/memzero/add.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/memzero/add.py -------------------------------------------------------------------------------- /evaluation/src/memzero/search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/memzero/search.py -------------------------------------------------------------------------------- /evaluation/src/openai/predict.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/openai/predict.py -------------------------------------------------------------------------------- /evaluation/src/rag.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/rag.py -------------------------------------------------------------------------------- /evaluation/src/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/utils.py -------------------------------------------------------------------------------- /evaluation/src/zep/add.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/zep/add.py -------------------------------------------------------------------------------- /evaluation/src/zep/search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/evaluation/src/zep/search.py -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/main.py -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/poetry.lock -------------------------------------------------------------------------------- /prem.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/prem.png -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prem-research/cortex/HEAD/pyproject.toml --------------------------------------------------------------------------------