INNER CODE UNIT · Go

client

orneryd/NornicDB · cmd/eval/main.go:566

	client := newSafeClient(30 * time.Second)

	// Sample nodes to create
	cypher := `
		CREATE (n1:Memory:Concept {id: 'ml-intro', title: 'Introduction to Machine Learning', content: 'Machine learning is AI that learns from data'})
		CREATE (n2:Memory:Concept {id: 'ml-neural', title: 'Neural Networks', content: 'Neural networks are inspired by biological brains'})
		CREATE (n3:Memory:Decision {id: 'db-design', title: 'Database Decision', content: 'We chose PostgreSQL for relational and NornicDB for graphs'})
		CREATE (n4:Memory:Code {id: 'code-auth', title: 'Auth Middleware', content: 'JWT authentication middleware for API'})
		CREATE (n5:Task {id: 'task-api', title: 'REST API', content: 'Implement user management endpoints', status: 'pending'})
	`

	reqBody := map[string]interface{}{
		"statements": []map[string]interface{}{
			{"statement": cypher},
		},
	}
	body, _ := json.Marshal(reqBody)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…