330330 < li > < a class ="nav-link " href ="# " data-section ="welcome "> Welcome to MemoryOS</ a > </ li >
331331 < li > < a class ="nav-link " href ="# " data-section ="getstarted "> Get started</ a > </ li >
332332 < li > < a class ="nav-link " href ="# " data-section ="configure "> Configure Instruction</ a > </ li >
333+ < li > < a class ="nav-link " href ="# " data-section ="api-reference "> API Reference</ a > </ li >
333334 < li > < a class ="nav-link " href ="# " data-section ="howitworks "> How It Works</ a > </ li >
334335 < li > < a class ="nav-link " href ="# " data-section ="platform "> MemoryOS Playground</ a > </ li >
335336 </ ul >
@@ -475,7 +476,6 @@ <h2>Get Started</h2>
475476 < pre > < code > # Pull the latest official image
476477docker pull ghcr.io/bai-lab/memoryos:latest
477478
478- # Run the container (add --gpus=all if you have a GPU)
479479docker run -it --gpus=all ghcr.io/bai-lab/memoryos /bin/bash</ code > </ pre >
480480 < ul class ="features ">
481481 < li > < b > Option 2: Build from Dockerfile</ b > </ li >
@@ -490,8 +490,34 @@ <h2>Get Started</h2>
490490
491491docker run -it --gpus=all memoryos /bin/bash</ code > </ pre >
492492
493+ < li > < b > MemoryOS_Chromadb Getting Started</ b > </ li >
494+ < div style ="margin: 24px 0 32px 0; ">
495+ < h3 style ="font-size:1.18rem;font-weight:600; "> 1. Install dependencies</ h3 >
496+ < pre style ="font-size:1em; "> < code > cd memoryos-chromadb
497+ pip install -r requirements.txt</ code > </ pre >
498+ < h3 style ="font-size:1.18rem;font-weight:600; "> 2. Test</ h3 >
499+ < div style ="background:#f8f9fa;padding:18px 18px 18px 18px;border-radius:8px;margin-bottom:18px; ">
500+ < p > The edit information is in < b > comprehensive_test.py</ b > </ p >
501+ < pre style ="font-size:1em; "> < code > memoryos = Memoryos(
502+ user_id='travel_user_test',
503+ openai_api_key='',
504+ openai_base_url='',
505+ data_storage_path='./comprehensive_test_data',
506+ assistant_id='travel_assistant',
507+ embedding_model_name='BAAI/bge-m3',
508+ mid_term_capacity=1000,
509+ mid_term_heat_threshold=13.0,
510+ mid_term_similarity_threshold=0.7,
511+ short_term_capacity=2
512+ )
513+ </ code > </ pre >
514+ < pre style ="font-size:1em; "> < code > python3 comprehensive_test.py
515+ # Make sure to use a different data storage path when switching embedding models.
516+ </ code > </ pre >
517+ </ div >
518+ </ div >
519+
493520
494- </ ul >
495521 </ section >
496522 < section class ="section " id ="configure ">
497523 < h3 > 📋 < strong > Complete List of 13 Parameters</ strong > </ h3 >
@@ -630,6 +656,54 @@ <h2>MemoryOS Playground</h2>
630656 < a class ="memory-platform-btn " href ="https://baijia.online/memoryos/ " target ="_blank " rel ="noopener "> Go to MemoryOS Playground</ a >
631657 < p style ="margin-top:18px; "> Web-based memory analytics and management platform for MemoryOS. Coming soon!</ p >
632658 </ section >
659+ < section class ="section " id ="api-reference ">
660+ < h2 style ="font-size:1.6rem;font-weight:700;margin-top:36px; "> MemoryOS Public API Reference</ h2 >
661+ < hr >
662+ < h3 style ="font-size:1.18rem;font-weight:600; "> PyPI</ h3 >
663+ < div style ="font-size:1.08rem; ">
664+ < b > Class:</ b > < code > Memoryos</ code >
665+ < h4 style ="margin-top:18px; "> Constructor parameters</ h4 >
666+ < pre > < code > Memoryos(
667+ user_id: str,
668+ assistant_id: str,
669+ openai_api_key: str,
670+ openai_base_url: str,
671+ data_storage_path: str,
672+ llm_model: str,
673+ short_term_capacity: int,
674+ mid_term_heat_threshold: float,
675+ retrieval_queue_capacity: int,
676+ long_term_knowledge_capacity: int,
677+ embedding_model_name: str
678+ )
679+ </ code > </ pre >
680+ < h4 > Methods</ h4 >
681+ < pre > < code > add_memory(user_input: str, agent_response: str) -> None
682+ </ code > </ pre >
683+ < p > Add a user-assistant message pair to the memory system.</ p >
684+ < pre > < code > get_response(query: str) -> str
685+ </ code > </ pre >
686+ < p > Retrieve and generate a response based on the memory system.</ p >
687+ < pre > < code > get_user_profile() -> dict
688+ </ code > </ pre >
689+ < p > Get the user profile inferred from conversation history.</ p >
690+ </ div >
691+ < hr >
692+ < h3 style ="font-size:1.18rem;font-weight:600; "> MCP mode (MemoryOS-MCP server tools)</ h3 >
693+ < div style ="font-size:1.08rem; ">
694+ < b > Core API endpoints / tools</ b >
695+ < pre > < code > add_memory(user_input: str, agent_response: str) -> None
696+ </ code > </ pre >
697+ < p > Store a conversation pair in the memory system.</ p >
698+ < pre > < code > retrieve_memory(query: str) -> list
699+ </ code > </ pre >
700+ < p > Retrieve relevant past conversations, preferences, and knowledge.</ p >
701+ < pre > < code > get_user_profile() -> dict
702+ </ code > </ pre >
703+ < p > Return the analyzed user profile.</ p >
704+ </ div >
705+ </ section >
706+
633707 </ main >
634708 </ div >
635709</ body >
0 commit comments