@@ -100,79 +100,6 @@ pnpm db:setup
100100 <!-- 5. **Consolidation**: Merge related memories and update importance scores -->
101101 6 . ** Completion** : Mark messages as processed and update access patterns
102102
103- ## Monitoring
104-
105- ### Processing Status
106- ``` bash
107- # Check embedding regeneration status
108- curl -H " Authorization: Bearer your_api_key" \
109- http://localhost:3001/api/settings/regeneration-status
110- ```
111-
112- Response:
113- ``` json
114- {
115- "isRegenerating" : false ,
116- "progress" : 100 ,
117- "totalItems" : 1500 ,
118- "processedItems" : 1500 ,
119- "avgBatchTimeMs" : 2500 ,
120- "estimatedTimeRemaining" : null
121- }
122- ```
123-
124- ### Database Queries
125- ``` sql
126- -- Check unprocessed messages
127- SELECT COUNT (* ) FROM chat_messages WHERE is_processed = false;
128-
129- -- Check memory fragments by type
130- SELECT memory_type, COUNT (* ) as count
131- FROM memory_fragments
132- WHERE deleted_at IS NULL
133- GROUP BY memory_type;
134-
135- -- Check recent memory access patterns
136- SELECT access_type, COUNT (* ) as count
137- FROM memory_access_patterns
138- WHERE created_at > (EXTRACT(EPOCH FROM NOW() - INTERVAL ' 24 hours' ) * 1000 )
139- GROUP BY access_type;
140-
141- -- Check entity relationships
142- SELECT relationship_type, COUNT (* ) as count
143- FROM memory_entity_relations
144- GROUP BY relationship_type;
145- ```
146-
147- ## Development
148-
149- ### Local Development
150- ``` bash
151- # Install dependencies
152- pnpm install
153-
154- # Start database
155- docker compose up airi-memory-pgvector -d
156-
157- # Setup database (generate schema and run migrations)
158- pnpm db:setup
159-
160- # Run in development mode with hot reload
161- pnpm dev
162- ```
163-
164- ### Testing
165- ``` bash
166- # Type checking
167- pnpm typecheck
168-
169- # Build the service
170- pnpm build
171-
172- # Run tests (when implemented)
173- pnpm test
174- ```
175-
176103# Performance
177104
178105### Intelligent Processing
0 commit comments