Browse Source

πŸ€–AI assistant

windhamdavid 1 year ago
parent
commit
7869ca2b62
12 changed files with 1691 additions and 34 deletions
  1. 2 0
      .gitignore
  2. 2 0
      docs/saas/openai.md
  3. 5 1
      docusaurus.config.js
  4. 0 1
      lists/art/music/music.md
  5. 10 8
      notes/dogs.md
  6. 14 0
      notes/projects/ai.md
  7. 948 10
      package-lock.json
  8. 3 1
      package.json
  9. 17 0
      src/css/custom.css
  10. 20 4
      src/pages/help.md
  11. 1 0
      src/pages/index.md
  12. 669 9
      yarn.lock

+ 2 - 0
.gitignore

@@ -1,5 +1,7 @@
 .DS_Store
 /static
+# AI Assistant
+/src/pages/ai.mdx
 
 # Dependencies
 /node_modules

+ 2 - 0
docs/saas/openai.md

@@ -20,6 +20,8 @@ LangChain repo -<https://github.com/hwchase17/langchain>
 
 
 
+
+
 ### Videos
 
 - Build Your Own Auto-GPT Apps with LangChain - <https://www.youtube.com/watch?v=NYSWn1ipbgg> / <https://github.com/daveebbelaar/langchain-experiments>

+ 5 - 1
docusaurus.config.js

@@ -29,6 +29,7 @@ module.exports = {
         routeBasePath: 'notes',
         sidebarPath: require.resolve('./sidebarsnotes.js'),
         editUrl:'https://code.davidawindham.com/david/til/src/main/',
+        showLastUpdateTime: true,
       },
     ],
     [
@@ -39,6 +40,7 @@ module.exports = {
         routeBasePath: 'lists',
         sidebarPath: require.resolve('./sidebarslists.js'),
         editUrl:'https://code.davidawindham.com/david/til/src/main/',
+        showLastUpdateTime: true,
       },
     ],
     [
@@ -90,10 +92,11 @@ module.exports = {
       },
       items: [
         {to: 'about/',activeBasePath: 'til',label: 'About',position: 'left'},
+        {to: 'ai', label: 'AI',position: 'left'},
         {to: 'docs/',activeBasePath: 'docs',label: 'Docs',position: 'left'},
         {to: 'lists/',activeBasePath: 'lists',label: 'Lists',position: 'left'},
         {to: 'notes/',activeBasePath: 'notes',label: 'Notes',position: 'left'},
-        {to: 'posts/',activeBasePath: 'posts',label: 'Posts',position: 'left'},      
+        {to: 'posts/',activeBasePath: 'posts',label: 'Posts',position: 'left'}, 
         {to: 'help', label: 'Help', position: 'left'},
         {type: 'search', position: 'left'},
         {
@@ -114,6 +117,7 @@ module.exports = {
         docs: {
           sidebarPath: require.resolve('./sidebars.js'),
           editUrl:'https://code.davidawindham.com/david/til/src/main/',
+          showLastUpdateTime: true,
         },
         blog: {
           blogTitle: 'Posts',

+ 0 - 1
lists/art/music/music.md

@@ -69,7 +69,6 @@ I like to create music playlist from new releases about every month or so. I sta
 [Brian Eno](https://en.wikipedia.org/wiki/Brian_Eno) / 
 [Van Morrison](https://en.wikipedia.org/wiki/Van_Morrison) / 
 [Grateful Dead](https://en.wikipedia.org/wiki/Grateful_Dead) / 
-[Ahmad Jamal](https://en.wikipedia.org/wiki/Ahmad_Jamal) / 
 [The Beatles](https://en.wikipedia.org/wiki/The_Beatles) / 
 [Duke Ellington](https://en.wikipedia.org/wiki/Duke_Ellington) / 
 [Thelonious Monk](https://en.wikipedia.org/wiki/Thelonious_Monk) / 

+ 10 - 8
notes/dogs.md

@@ -143,9 +143,9 @@ Other regional breeders:
 | Stand | Stand | | πŸ‘†πŸΌπŸ‘†πŸΌ |
 | Lie | Lie | | 🫳🏼 |
 | Down | Down | | 🫳🏼 |
-| Get | Get | | πŸ‘‡πŸΌ |
-| Load | Load | | πŸ‘ˆπŸΌ |
+| Get | Get | | 🫡🏼 |
 | Go | Go | | 🫡🏼 |
+| Load | Load | | πŸ‘ˆπŸΌ |
 | Watch | Watch | | πŸ‘‰πŸΌπŸ‘€πŸ‘ˆπŸΌ |
 | Fetch | Fetch | | 🫡🏼 /πŸ‘οΈπŸ‘ˆπŸΌ|
 | Bring | Bring | | 🫴🏼🀌🏼|
@@ -203,9 +203,7 @@ Fitzgerald Key for Augmented and alternative communication - https://www.communi
 
 ### Insurance 
 State Farm Pet Insurance - https://www.statefarm.com/insurance/pet  
-
-
-
+Trupanion 
 
 ## Service Research
 
@@ -220,9 +218,13 @@ State Farm Pet Insurance - https://www.statefarm.com/insurance/pet
 
 ### Video Testimony
 
-- Portland High School - https://www.youtube.com/watch?v=oX2fAgN1iJE
-- Artie - Narona County School District - https://www.youtube.com/watch?v=EGO5DIB4t8E
-- Wyoming Department of Education - https://www.youtube.com/watch?v=ZPHr2v8ycsw
+- Portland High School - <https://www.youtube.com/watch?v=oX2fAgN1iJE>
+- Artie - Narona County School District - <https://www.youtube.com/watch?v=EGO5DIB4t8E>
+- Wyoming Department of Education - <https://www.youtube.com/watch?v=ZPHr2v8ycsw>
+- PBS News Hour - <https://www.youtube.com/watch?v=393Pr1bGFUA>
+- Bryant Public Schools-  <https://www.youtube.com/watch?v=bq-p84ltR7g>
+- Educating Greater Manchester - <https://www.youtube.com/watch?v=hNfP85NLMDQ>
+
 
 ### Organizations
 

+ 14 - 0
notes/projects/ai.md

@@ -1,10 +1,24 @@
 # AI Assistant
 
+Semantic search is powerful and it's part of the reason I build and publish this Today I Learned section on my website. Semantic search is even more powerful when you add natural language processing trained on a large language model. I'm making this page for notes on building a personal AI Assistant. 
+
+### Background
+
+I written several essays in the last couple years on using tools to organize my workflow and thinking <sub>1,2</sub>. In the last six months I've written two on Artificial Intelligence <sub>3,4</sub>. I now use several different AI assistants within my text editor for coding. The same way I've applied my code documentation to the rest of my life here, I'm starting to realize how helpful AI assistants can be. I think I'll need one to interact with my public documentation and a second for me to interact with my private information like my calendar, chats, and emails.  
+
+I've recently started learning how to create embeddings using vector databases which can be chained to existing LLMs. I've started some documentation using LangChain and OpenAi @ [/docs/saas/OpenAI](/docs/saas/OpenAI) <sub>5</sub>. Because the field is rapidly developing, I need a place to keep notes on it, so here we are. 
+
+
+
+### ToDo
 
 
 ---
+### References
 
 1. _Slow Thinking_ - <https://davidawindham.com/slow-thinking/>
 2. _A Second Brain_ - <https://davidawindham.com/a-second-brain/>
 3. _Artificial Intelligence_ - <https://davidawindham.com/artificial-intelligence/>
 4. _Artificial Intelligence (Part 2)_ - <https://davidawindham.com/artificial-intelligence-2/>
+5. TIL SasS OpenAI - [/docs/saas/OpenAI](/docs/saas/OpenAI)
+6. MarkPrompt - [https://markprompt.com/docs#react](https://markprompt.com/docs#react)

File diff suppressed because it is too large
+ 948 - 10
package-lock.json


+ 3 - 1
package.json

@@ -22,8 +22,10 @@
     "clsx": "^1.1.1",
     "docusaurus-lunr-search": "^2.3.2",
     "docusaurus-plugin-matomo": "^0.0.6",
+    "markprompt": "^0.1.7",
     "react": "^17.0.2",
-    "react-dom": "^17.0.2"
+    "react-dom": "^17.0.2",
+    "react-player": "^2.12.0"
   },
   "browserslist": {
     "production": [

+ 17 - 0
src/css/custom.css

@@ -74,4 +74,21 @@ table td img {
 }
 .hero__title, .title_f1Hy {
   font-size: 1.5rem !important;
+}
+
+markprompt-content {
+  --background-color: #ffffff;
+}
+markprompt-content.dark {
+  --background-color: #000000;
+}
+form input { 
+  box-sizing: border-box;
+  margin: 1em 0 2em;
+  font-size: 1.5em;
+  background: none;
+  border-radius: .2em;
+  border-color: none;
+  padding: .5em;
+  width: 100%;
 }

+ 20 - 4
src/pages/help.md

@@ -18,9 +18,6 @@ npm run build
 npm run serve
 ```
 
-
-
-
 ---
 
 ### Log
@@ -39,8 +36,27 @@ gitGraph
     checkout main
     merge docusaurus
 ```
+#### 23/05/09
+- added react-player
+- added markprompt 
+```bash
+david@ovidπŸ› :~/sites/daw_til(main⚑) Β» npm list     
+daw-til-2@0.0.1 /Users/david/Sites/daw_til
+β”œβ”€β”€ @docusaurus/core@2.4.0
+β”œβ”€β”€ @docusaurus/plugin-content-blog@2.4.0
+β”œβ”€β”€ @docusaurus/preset-classic@2.4.0
+β”œβ”€β”€ @docusaurus/theme-mermaid@2.4.0
+β”œβ”€β”€ @mdx-js/react@1.6.22
+β”œβ”€β”€ clsx@1.2.1
+β”œβ”€β”€ docusaurus-lunr-search@2.3.2
+β”œβ”€β”€ docusaurus-plugin-matomo@0.0.6
+β”œβ”€β”€ markprompt@0.1.7
+β”œβ”€β”€ react-dom@17.0.2
+β”œβ”€β”€ react-player@2.12.0
+└── react@17.0.2
+```
 
-#### 23/3/24
+#### 23/03/24
 
 - npm up doc/core 2.3.1 -> 2.4.0
 ```bash

+ 1 - 0
src/pages/index.md

@@ -4,6 +4,7 @@ description: A place to keep notes and documentation
 ---
 # Today I Learned
 - May 2023
+  - [How to add an AI assistant to these documents](/ai)
   - [How to use LangChain and OpenAI](/posts/openai-langchain)
 - April 2023
   - [The South Carolina Visual Arts Standards](posts/sc-arts)

File diff suppressed because it is too large
+ 669 - 9
yarn.lock


Some files were not shown because too many files changed in this diff