Leanpub Header

Skip to main content

Practical Artificial Intelligence Programming With Clojure

Practical Artificial Intelligence Programming With Clojure
هذا الكتاب هو 100% كاملةأخر تحديث لهذا الكتاب كان فى 2026-07-16

This book contains both pure Clojure examples as well as examples using Java libraries built in my book https://leanpub.com/javaai/ and OpenAI APIs.

الحد الأدنى للسعر

مجاناً!

$12.00

أنت تدفع

مستحقات المؤلف

$

Also available for 1 book credit with a Reader Membership

PDF
EPUB
WEB
APP
حول

حول

نبذه عن الكتاب

A practical guide to Artificial Intelligence development using Clojure that uses LLM APIs (local with Ollama, commercial with Gemini, etc.), DeepLearning4J, NLP, anomaly detection, and knowledge graph tools in Clojure applications.

مشاركة هذا الكتاب

التصنيفات

الملاحظات

المؤلف

نبذه عن المؤلف

Mark Watson

Mark Watson is a consultant specializing in LLMs, deep learning, machine learning, knowledge graphs, and general artificial intelligence software development. He uses Common Lisp, Clojure, Python, Java, Haskell, and Ruby for development.

He is the author of 20+ published books on Artificial Intelligence, Deep Learning, Java, Ruby, Machine Learning, Common LISP, Clojure, JavaScript, Semantic Web, NLP, C++, Linux, and Scheme. He has 55 US Patents.

Mark's consulting customer list includes: Google, Capital One, Olive AI, CompassLabs, Disney, Sitescout.com, Embed.ly, and Webmind Corporation.

Mark wrote ten traditional published books for McGraw Hill, Springer Verlag, J Wiley, and Morgan Kaufman publishers before adopting the LeanPub self-publishing platform.

The Leanpub Podcast

بودكاست

Podcast Episode

المحتويات

جدول المحتويات

Cover Material, Copyright, and License

Preface

  1. Requests from the Author
  2. Clojure, With Some Java and Python
  3. Personal Artificial Intelligence Journey: or, Life as a Lisp Developer
  4. Notes for Setting Up Clojure, Emacs, and Cider
  5. Acknowledgements

Deep Learning Using Deeplearning4j

  1. Feed Forward Classification Networks
  2. Optional Material: Documentation for Other Types of DeepLearning4J Built-in Layers
  3. Deep Learning Wrap Up
  4. Optional Practice Problems

Natural Language Processing Using OpenNLP

  1. Using the Clojure and Java Wrappers for OpenNLP
  2. Optional Practice Problems

Using uv and Python/Clojure Interoperation Using the libpython-clj2 Library

  1. Setting Up the Project with uv
  2. Using spaCy for Natural Language Processing
  3. Using the Hugging Face Transformer Models for Question Answering
  4. Combined spaCy and Transformer Question Answering
  5. Using libpython-clj with the spaCy and Hugging Face Transformer Python NLP Libraries
  6. Optional Practice Problems

Semantic Search Using a Vector Database and Python and uv Interoperability

  1. What Is a Vector Database?
  2. Architecture Overview
  3. Setting Up the Project with uv
  4. The Python Wrapper: vector_db.py
  5. The Clojure Orchestration Layer: core.clj
  6. Running the Demo
  7. Note on the Model Cache
  8. Wrap Up
  9. Optional Practice Problems

Anomaly Detection Machine Learning Example

  1. Motivation for Anomaly Detection
  2. Math Primer for Anomaly Detection
  3. AnomalyDetection Utility Class Written in Java
  4. Clojure Experiment for the University of Wisconsin Cancer Data Using Java Anomaly Detection Code
  5. Optional Practice Problems

Web Scraping

  1. Web Scraping Using the jsoup Library
  2. Optional Practice Problems

Using the Brave Search APIs

  1. Setting an Environment Variable for the Access Key for Brave Search APIs
  2. Using the Brave Search API
  3. Wrap-up
  4. Optional Practice Problems

Background Material for the Semantic Web and Knowledge Graphs

  1. Learning Plan
  2. Available Tools
  3. RDF: The Universal Data Format
  4. Extending RDF with RDF Schema
  5. The SPARQL Query Language
  6. OWL: The Web Ontology Language
  7. Semantic Web Wrap-up
  8. Optional Practice Problems

Clojure Wrapper for the Jena RDF and SPARQL Library

  1. Optional Practice Problems

Simple RDF Datastore and Partial SPARQL Query Processor

  1. Implementing a Simple RDF Datastore
  2. Querying the RDF Datastore
  3. Implementing a Partial SPARQL Query Processor
  4. Putting It All Together: Running Example Queries
  5. Summary
  6. Optional Practice Problems

Knowledge Graph Navigator

  1. Entity Types Handled by KGN
  2. KGN Implementation
  3. Optional Practice Problems

Datomic Local: Clojure wrapper for Immutable Datalog

  1. Why Datalog for AI?
  2. Project Setup
  3. A Thin Wrapper
  4. Database Lifecycle
  5. Transactions
  6. Schema Definition
  7. Queries
  8. Entity Relationships and Nested Pull
  9. Join Queries
  10. Upsert with Unique Identity
  11. Transaction Operations
  12. Time Travel: Querying Past States
  13. Incremental Fact Building
  14. Differences from Datomic Pro/Cloud
  15. A Helper Function
  16. AI & Knowledge Graph Use Cases
  17. Running the Tests
  18. Resources
  19. Optional Practice Problems

Using the OpenAI APIs

  1. Gemini API Library Implementation for REST Interface
  2. (New) Gemini Client Library Using Google’s Java SDK for Gemini
  3. Gemini APIs Wrap Up
  4. Optional Practice Problems

Using the LiteLLM-CLJ Library as a Universal LLM Interface

  1. Project Setup
  2. How the Router Works
  3. OpenAI Completions Example
  4. Google Gemini Completions Example
  5. When to Use LiteLLM-CLJ vs. Direct API Wrappers
  6. Wrap Up
  7. Optional Practice Problems

Question Answering Using OpenAI APIs and a Local Embeddings Vector Database

  1. Implementing a Local Vector Database for Document Embeddings
  2. Create Local Embeddings Vectors From Local Text Files with OpenAI GPT APIs
  3. Using Local Embeddings Vector Database with OpenAI GPT APIs
  4. Wrap Up for Using Local Embeddings Vector Database to Enhance the Use of GPT-5-nano APIs with Local Documents
  5. Optional Practice Problems

Running LLMs Locally Using Ollama

  1. Running the Example Tests
  2. Clojure Client Library for the Ollama Service REST APIs
  3. Optional Practice Problems

Using Moonshot’s Kimi K2 Model with Built In $web_search Tool Support

  1. Clojure Library Moonshot.ai’s Kimi K2 Model (Including Web Search Tool)
  2. Test code for the Moonshot.ai Kimi K2 API Client Library
  3. Wrap Up for Moonshot.ai Kimi K2 Model
  4. Optional Practice Problems

AgentScope Agent Oriented Framework

  1. Overview of AgentScope
  2. Generating Completions With AgentScope: Gemini Example
  3. Multiple Tool Use with AgentScope: Ollama Example
  4. Summary
  5. Optional Practice Problems

Building Interactive Desktop Apps with Clojure and Humble UI

  1. Core Concepts of Humble UI
  2. 1. The Basic Greeting App
  3. 2. AI Chat Client: Integrating External APIs
  4. 3. PDF Viewer: Handling Files and Graphics
  5. Summary

Conclusions

أيضا بواسطة المؤلف

أيضا بواسطة المؤلف

Leanpub بدون شروط, بدون مجازفه, 100% ضمان لسعادتك معنا

فى خلال 60 يوم من الشراء تستطيع أن تسترد 100% من الذى دفعته فى أى مشتريات من Leanpub , بنقرتين من الماوس. ألقى نظره على كامل الشروط.

اكسب 8$ على كل عملية شراء بقيمة 10$، و16$ على كل عملية شراء بقيمة 20$

نحن ندفع عائدات بنسبة ٨٠٪ على المشتريات التي تبلغ قيمتها 7.99$ أو أكثر، وعائدات بنسبة ٨٠٪ مع خصم رسوم ثابتة قدرها 50 سنتاً على المشتريات التي تتراوح بين 0.99$ و7.98$. تكسب 8$ على كل بيع بقيمة 10$، و16$ على كل بيع بقيمة 20$. لذلك، إذا بعنا 5000 نسخة غير مستردة من كتابك بسعر 20$، ستكسب 80,000$.

(نعم، بعض المؤلفين قد كسبوا بالفعل أكثر من ذلك بكثير على Leanpub.)

في الواقع، كسب المؤلفون أكثر من 14 مليون دولار من خلال الكتابة والنشر والبيع على Leanpub.

تعرف على المزيد حول الكتابة على Leanpub

تحديثات مجانية. خالي من حماية DRM.

إذا اشتريت كتابًا من Leanpub، فستحصل على تحديثات مجانية طالما يقوم المؤلف بتحديث الكتاب! يستخدم العديد من المؤلفين Leanpub لنشر كتبهم أثناء الكتابة. جميع القراء يحصلون على تحديثات مجانية، بغض النظر عن متى اشتروا الكتاب أو كم دفعوا (بما في ذلك مجانًا).

معظم كتب Leanpub متوفرة بتنسيق PDF (للكمبيوتر)، EPUB (للهواتف والأجهزة اللوحية و Kindle). يتم عرض التنسيقات التي يتضمنها الكتاب في الزاوية العلوية اليمنى من هذه الصفحة.

وأخيرًا، الكتب من Leanpub لا تحتوي على أي هراء حماية حقوق النسخ DRM، لذا يمكنك قراءتها بسهولة على أي جهاز مدعوم.

تعرف على المزيد حول تنسيقات الكتب الإلكترونية من Leanpub وأماكن قراءتها

اكتب وانشر على Leanpub

يستخدم المؤلفون والناشرون Leanpub لنشر كتب إلكترونية رائعة قيد التقدم والمكتملة، تمامًا مثل هذه. يمكنك استخدام Leanpub للكتابة، والنشر وبيع كتابك أيضًا! Leanpub هو منصة قوية للمؤلفين الجادين، يجمع بين تدفق الكتابة والنشر البسيط والأنيق مع متجر يركز على بيع الكتب الإلكترونية قيد التقدم. Leanpub هو آلة كتابة سحرية للمؤلفين: فقط اكتب بنص عادي، ولنشر كتابك الإلكتروني، فقط اضغط على زر. إنه حقًا بهذه السهولة.

تعرف على المزيد حول الكتابة على Leanpub