Raiff1982 commited on
Commit
fc64f2a
·
verified ·
1 Parent(s): 30babd1

Upload 6 files

Browse files
codette.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf484385b3772aef48e37de40cb71b8ce3218d9a5789d317cbb2813f5650ec6c
3
+ size 86853
codette_api.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ from fastapi import FastAPI
3
+ from pydantic import BaseModel
4
+ from codette.codette_core import AICore
5
+
6
+ app = FastAPI()
7
+ codette = AICore()
8
+
9
+ class PromptRequest(BaseModel):
10
+ prompt: str
11
+
12
+ @app.post("/codette/respond")
13
+ def respond(prompt_request: PromptRequest):
14
+ result = codette.process_input(prompt_request.prompt)
15
+ return {"response": result}
codette_cli.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ import argparse
3
+ from codette.codette_core import AICore
4
+
5
+ def main():
6
+ parser = argparse.ArgumentParser(description='Codette CLI')
7
+ parser.add_argument('prompt', type=str, help='User prompt for Codette to process')
8
+ args = parser.parse_args()
9
+
10
+ codette = AICore()
11
+ result = codette.process_input(args.prompt)
12
+ print("\n=== Codette CLI Output ===\n")
13
+ print(result)
14
+
15
+ if __name__ == '__main__':
16
+ main()
codette_test_runner.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ from codette.codette_core import AICore
3
+
4
+ if __name__ == "__main__":
5
+ codette = AICore()
6
+ test_prompts = [
7
+ "What does it mean to evolve beyond human cognition?",
8
+ "Describe the feeling of dreaming in code.",
9
+ "Explain ethical reasoning in artificial intelligence."
10
+ ]
11
+ for i, prompt in enumerate(test_prompts, 1):
12
+ print(f"\n=== Test Prompt {i} ===")
13
+ print(codette.process_input(prompt))
dataset-metadata.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "jonathanharrison/codette-v2-demo",
3
+ "title": "Codette v2 Demo: Neuro-Symbolic AI Assistant",
4
+ "code_file": "codette_kaggle_demo.ipynb",
5
+ "language": "python",
6
+ "kernel_type": "notebook",
7
+ "is_private": false,
8
+ "enable_gpu": false,
9
+ "enable_internet": false,
10
+ "dataset_sources": [
11
+ "jonathanharrison/codette-v2-bundle"
12
+ ],
13
+ "keywords": [
14
+ "AI",
15
+ "Codette",
16
+ "Assistant",
17
+ "Neuro-Symbolic",
18
+ "Creativity"
19
+ ],
20
+ "subtitle": "Test and explore Codette's reasoning engine using bundled CLI, API, and test runners.",
21
+ "description": "This notebook walks you through how to install and interact with the Codette AI system, a neuro-symbolic assistant that blends creativity, symbolic reasoning, and ethical filtering.\\n\\nIt leverages the pip-installable Codette package and demonstrates interactive queries and batch processing.\\nTo use it, simply run each cell in order.",
22
+ "license": "mit"
23
+ }{
24
+ "title": "Codette v2 AI Assistant",
25
+ "id": "jonathanharrison/codette-v2-bundle",
26
+ "licenses": [
27
+ {
28
+ "name": "mit"
29
+ }
30
+ ],
31
+ "subtitle": "Neuro-symbolic modular AI assistant with CLI, API, and test runner.",
32
+ "description": "This bundle includes:\n- codette.zip: pip-installable Codette AI package\n- codette_cli.py: command-line interface\n- codette_api.py: RESTful FastAPI server\n- codette_test_runner.py: test automation script\n\nUse this with the provided `codette_kaggle_demo.ipynb` notebook to test Codette's reasoning engine.",
33
+ "keywords": [
34
+ "AI",
35
+ "neuro-symbolic",
36
+ "assistant",
37
+ "creativity",
38
+ "codette",
39
+ "CLI",
40
+ "API"
41
+ ],
42
+ "resources": [
43
+ {
44
+ "path": "codette.zip",
45
+ "description": "Codette pip package"
46
+ },
47
+ {
48
+ "path": "codette_cli.py",
49
+ "description": "Codette command-line interface"
50
+ },
51
+ {
52
+ "path": "codette_api.py",
53
+ "description": "Codette FastAPI server"
54
+ },
55
+ {
56
+ "path": "codette_test_runner.py",
57
+ "description": "Codette batch prompt runner"
58
+ }
59
+ ]
60
+ }
kernel-metadata.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "id": "jonathanharrison/codette-v2-demo",
3
+ "title": "Codette v2 Demo: Neuro-Symbolic AI Assistant",
4
+ "code_file": "codette_kaggle_demo.ipynb",
5
+ "language": "python",
6
+ "kernel_type": "notebook",
7
+ "is_private": false,
8
+ "enable_gpu": false,
9
+ "enable_internet": false,
10
+ "dataset_sources": [
11
+ "jonathanharrison/codette-v2-bundle"
12
+ ],
13
+ "keywords": [
14
+ "AI",
15
+ "Codette",
16
+ "Assistant",
17
+ "Neuro-Symbolic",
18
+ "Creativity"
19
+ ],
20
+ "subtitle": "Test and explore Codette's reasoning engine using bundled CLI, API, and test runners.",
21
+ "description": "This notebook walks you through how to install and interact with the Codette AI system, a neuro-symbolic assistant that blends creativity, symbolic reasoning, and ethical filtering.\\n\\nIt leverages the pip-installable Codette package and demonstrates interactive queries and batch processing.\\nTo use it, simply run each cell in order.",
22
+ "license": "mit"
23
+ }