Preface
- Requests from the Author
- License for Book Manuscript: Creative Commons
- Book Example Programs
- Racket, Scheme, and Common Lisp
- Personal Artificial Intelligence Journey: or, Life as a Lisp Developer
- Acknowledgements
A Quick Racket Tutorial
- Installing Packages
- Installing Local Packages In Place
- Mapping Over Lists
- Element-wise Application: map then applies the + function to the elements of the two lists in a pairwise fashion:
- (+ 4 104) evaluates to 108
- Hash Tables
- Racket Structure Types
- Simple HTTP GET and POST Operations
- Using Racket ~/.racketrc Initialization File
- Tutorial Wrap Up
Datastores
- Accessing Public RDF Knowledge Graphs - a DBPedia Example
- SQlite
Implementing a Simple RDF Datastore With Partial SPARQL Support in Racket
- 1. Core RDF Data Structures and Basic Operations
- 2. Query Parsing and Execution
- 3. Helper Functions and Utilities
- Conclusion
Web Scraping
- Getting Started Web Scraping
- Implementation of a Racket Web Scraping Library
Using the OpenAI, Anthropic, Mistral, and Local Hugging Face Large Language Model APIs in Racket
- The Cambrian Explosion in Language Technology: A Historical Trajectory
- Commercial and Open Weight LLMs
- Introduction to the Applications of LLMs
- Using the OpenAI APIs in Racket
- Using the Anthropic APIs in Racket
- Using a Local Hugging Face Llama2-13b-orca Model with Llama.cpp Server
- Using a Local Mistral-7B Model with Ollama.ai
- Examples Using William J. Bowman’s Racket Language LLM
Retrieval Augmented Generation of Text Using Embeddings
- Example Implementation
- Retrieval Augmented Generation Wrap Up
Natural Language Processing
- NLP Wrap Up
Knowledge Graph Navigator
- Entity Types Handled by KGN
- KGN Implementation
- Knowledge Graph Navigator Wrap Up
