├── .env.sample ├── .gitignore ├── LICENSE ├── README.md ├── notebooks ├── 1- Setup Hello World.ipynb ├── 10 - Django to LlamaIndex - Part 1.ipynb ├── 11 - Django to LlamaIndex - Part 2 - Creating Documents.ipynb ├── 12 - Django to LlamaIndex - Part 3 - Custom Emeddings.ipynb ├── 13 - Llama Index Semantic Search Modules.ipynb ├── 14 - Text to SQL with Llama Index.ipynb ├── 15 - Creating Page Views for Blog Posts.ipynb ├── 16 - Multiple Models Text to SQL with Llama Index.ipynb ├── 17 - Customize Prompts.ipynb ├── 18 - Talk to Django.ipynb ├── 2 - Getting Started with Embeddings and Comparison.ipynb ├── 3 - Embeddings with Multiple Data Points.ipynb ├── 4 - Embeddings with IDs.ipynb ├── 5 - Connecting Django.ipynb ├── 6 - Semantic Search with Django and pgvector.ipynb ├── 7 - Semantic Search with Generic Foreign Keys Across Multiple Models.ipynb ├── 8 - Services for Search.ipynb ├── 9 - Cosine Similarity with Numpy.ipynb ├── 99 - Demo.ipynb └── setup.py ├── requirements.txt └── src ├── analytics ├── __init__.py ├── admin.py ├── apps.py ├── management │ ├── __init__.py │ └── commands │ │ ├── __init__.py │ │ └── fake_traffic.py ├── migrations │ ├── 0001_initial.py │ └── __init__.py ├── models.py ├── tests.py └── views.py ├── blog ├── __init__.py ├── admin.py ├── apps.py ├── management │ ├── __init__.py │ └── commands │ │ ├── __init__.py │ │ └── load_posts.py ├── migrations │ ├── 0001_initial.py │ ├── 0002_blogpost_embedding.py │ ├── 0003_blogpost_can_delete.py │ ├── 0004_blogpost__content.py │ └── __init__.py ├── models.py ├── services.py ├── tests.py └── views.py ├── cfehome ├── __init__.py ├── asgi.py ├── settings.py ├── urls.py └── wsgi.py ├── manage.py ├── products ├── __init__.py ├── admin.py ├── apps.py ├── migrations │ ├── 0001_initial.py │ └── __init__.py ├── models.py ├── tests.py └── views.py └── rag ├── __init__.py ├── db.py ├── embeddings.py ├── engines.py ├── patches.py ├── prompts.py ├── settings.py ├── sync.py └── updaters.py /.env.sample: -------------------------------------------------------------------------------- 1 | DJANGO_DEBUG=1 2 | DATABASE_URL="" 3 | OPENAI_API_KEY="" -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/README.md -------------------------------------------------------------------------------- /notebooks/1- Setup Hello World.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/1- Setup Hello World.ipynb -------------------------------------------------------------------------------- /notebooks/10 - Django to LlamaIndex - Part 1.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/10 - Django to LlamaIndex - Part 1.ipynb -------------------------------------------------------------------------------- /notebooks/11 - Django to LlamaIndex - Part 2 - Creating Documents.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/11 - Django to LlamaIndex - Part 2 - Creating Documents.ipynb -------------------------------------------------------------------------------- /notebooks/12 - Django to LlamaIndex - Part 3 - Custom Emeddings.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/12 - Django to LlamaIndex - Part 3 - Custom Emeddings.ipynb -------------------------------------------------------------------------------- /notebooks/13 - Llama Index Semantic Search Modules.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/13 - Llama Index Semantic Search Modules.ipynb -------------------------------------------------------------------------------- /notebooks/14 - Text to SQL with Llama Index.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/14 - Text to SQL with Llama Index.ipynb -------------------------------------------------------------------------------- /notebooks/15 - Creating Page Views for Blog Posts.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/15 - Creating Page Views for Blog Posts.ipynb -------------------------------------------------------------------------------- /notebooks/16 - Multiple Models Text to SQL with Llama Index.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/16 - Multiple Models Text to SQL with Llama Index.ipynb -------------------------------------------------------------------------------- /notebooks/17 - Customize Prompts.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/17 - Customize Prompts.ipynb -------------------------------------------------------------------------------- /notebooks/18 - Talk to Django.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/18 - Talk to Django.ipynb -------------------------------------------------------------------------------- /notebooks/2 - Getting Started with Embeddings and Comparison.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/2 - Getting Started with Embeddings and Comparison.ipynb -------------------------------------------------------------------------------- /notebooks/3 - Embeddings with Multiple Data Points.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/3 - Embeddings with Multiple Data Points.ipynb -------------------------------------------------------------------------------- /notebooks/4 - Embeddings with IDs.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/4 - Embeddings with IDs.ipynb -------------------------------------------------------------------------------- /notebooks/5 - Connecting Django.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/5 - Connecting Django.ipynb -------------------------------------------------------------------------------- /notebooks/6 - Semantic Search with Django and pgvector.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/6 - Semantic Search with Django and pgvector.ipynb -------------------------------------------------------------------------------- /notebooks/7 - Semantic Search with Generic Foreign Keys Across Multiple Models.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/7 - Semantic Search with Generic Foreign Keys Across Multiple Models.ipynb -------------------------------------------------------------------------------- /notebooks/8 - Services for Search.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/8 - Services for Search.ipynb -------------------------------------------------------------------------------- /notebooks/9 - Cosine Similarity with Numpy.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/9 - Cosine Similarity with Numpy.ipynb -------------------------------------------------------------------------------- /notebooks/99 - Demo.ipynb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/99 - Demo.ipynb -------------------------------------------------------------------------------- /notebooks/setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/notebooks/setup.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/requirements.txt -------------------------------------------------------------------------------- /src/analytics/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/analytics/admin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/analytics/admin.py -------------------------------------------------------------------------------- /src/analytics/apps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/analytics/apps.py -------------------------------------------------------------------------------- /src/analytics/management/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/analytics/management/commands/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/analytics/management/commands/fake_traffic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/analytics/management/commands/fake_traffic.py -------------------------------------------------------------------------------- /src/analytics/migrations/0001_initial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/analytics/migrations/0001_initial.py -------------------------------------------------------------------------------- /src/analytics/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/analytics/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/analytics/models.py -------------------------------------------------------------------------------- /src/analytics/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/analytics/tests.py -------------------------------------------------------------------------------- /src/analytics/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /src/blog/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/blog/admin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/blog/admin.py -------------------------------------------------------------------------------- /src/blog/apps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/blog/apps.py -------------------------------------------------------------------------------- /src/blog/management/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/blog/management/commands/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/blog/management/commands/load_posts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/blog/management/commands/load_posts.py -------------------------------------------------------------------------------- /src/blog/migrations/0001_initial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/blog/migrations/0001_initial.py -------------------------------------------------------------------------------- /src/blog/migrations/0002_blogpost_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/blog/migrations/0002_blogpost_embedding.py -------------------------------------------------------------------------------- /src/blog/migrations/0003_blogpost_can_delete.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/blog/migrations/0003_blogpost_can_delete.py -------------------------------------------------------------------------------- /src/blog/migrations/0004_blogpost__content.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/blog/migrations/0004_blogpost__content.py -------------------------------------------------------------------------------- /src/blog/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/blog/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/blog/models.py -------------------------------------------------------------------------------- /src/blog/services.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/blog/services.py -------------------------------------------------------------------------------- /src/blog/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/blog/tests.py -------------------------------------------------------------------------------- /src/blog/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /src/cfehome/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/cfehome/asgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/cfehome/asgi.py -------------------------------------------------------------------------------- /src/cfehome/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/cfehome/settings.py -------------------------------------------------------------------------------- /src/cfehome/urls.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/cfehome/urls.py -------------------------------------------------------------------------------- /src/cfehome/wsgi.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/cfehome/wsgi.py -------------------------------------------------------------------------------- /src/manage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/manage.py -------------------------------------------------------------------------------- /src/products/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/products/admin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/products/admin.py -------------------------------------------------------------------------------- /src/products/apps.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/products/apps.py -------------------------------------------------------------------------------- /src/products/migrations/0001_initial.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/products/migrations/0001_initial.py -------------------------------------------------------------------------------- /src/products/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/products/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/products/models.py -------------------------------------------------------------------------------- /src/products/tests.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/products/tests.py -------------------------------------------------------------------------------- /src/products/views.py: -------------------------------------------------------------------------------- 1 | from django.shortcuts import render 2 | 3 | # Create your views here. 4 | -------------------------------------------------------------------------------- /src/rag/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/rag/db.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/rag/db.py -------------------------------------------------------------------------------- /src/rag/embeddings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/rag/embeddings.py -------------------------------------------------------------------------------- /src/rag/engines.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/rag/engines.py -------------------------------------------------------------------------------- /src/rag/patches.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/rag/patches.py -------------------------------------------------------------------------------- /src/rag/prompts.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/rag/prompts.py -------------------------------------------------------------------------------- /src/rag/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/rag/settings.py -------------------------------------------------------------------------------- /src/rag/sync.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/rag/sync.py -------------------------------------------------------------------------------- /src/rag/updaters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/codingforentrepreneurs/talk-to-django/HEAD/src/rag/updaters.py --------------------------------------------------------------------------------