RAG combines the strengths of retrieval-based and generative models to improve the quality and relevance of generated text by leveraging external knowledge sources.
Edit me

call my cell for text messages

if any link not working, click here for details

LLM as a controller to leverage the external private knowledge base
LLM as a controller to leverage the external private knowledge base

ARTICLES

rag overview

rag1 rag2 rag3 rag4 rag5 rag6 rag4Chatbot

knowledge based Q&A

evidenceCollection

books

two_scoop3 django_microservice
django-pratical djangoapi
two_scoop1  

you will like these links

  • udemy course, and other resources in this site.

    it begins with;

python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt

chapter 5 settings and requirements files

settings

  • details
settings/
├── __init__.py
├── base.py
├── local.py
├── staging.py
├── test.py
├── production.py
python manage.py shell --settings=config.settings.local

chapter 4 Django app design

uncommon app names

click here to expand ``` scoops/ ├── api/ ├── behaviors.py ├── constants.py ├── context_processors.py ├── decorators.py ├── db/ ├── exceptions.py ├── fields.py ├── factories.py ├── helpers.py ├── managers.py ├── middleware.py ├── schema.py ├── signals.py ├── utils.py ├── viewmixins.py ```

django service layer

  • https://www.b-list.org/weblog/2020/mar/16/no-service/
  • https://www.b-list.org/weblog/2020/mar/23/still-no-service/
  • https://www.dabapps.com/blog/django-models-and-encapsulation/

chapter 3 django project layout

project templates

https://github.com/pydanny/cookiecutter-django Featured in this chapter.

https://github.com/grantmcconnaughey/cookiecutter-django-vue-graphql-aws Also featured in this chapter.

https://djangopackages.org/grids/g/cookiecu

default directory map

click here to expand ```text mysite/ ├── manage.py ├── my_app │ ├── __init__.py │ ├── admin.py │ ├── apps.py │ ├── migrations │ │ │ ├── models.py │ ├── tests.py │ └── views.py └── __init__.py └── mysite ├── __init__.py ├── asgi.py ├── settings.py ├── urls.py └── wsgi.py ```

Big map

<repository_root>/
├── <configuration_root>/
├── <django_project_root>/

README.md, docs/ directory, manage.py, .gitignore, requirements.txt files, and other high-level files that are required for deployment and running the project.

The settings module and base URLConf (urls.py) are placed. This must be a valid Python package containing an __init__.py module.

+ example of this
icecreamratings_project
├── config/
│ ├── settings/
│ ├── __init__.py
│ ├── asgi.py
│ ├── urls.py
│ └── wsgi.py
├── docs/
├── icecreamratings/
│ ├── media/
│ ├── products/
# Development only!
│ ├── profiles/
│ ├── ratings/
│ ├── static/
│ └── templates/
├── .gitignore
├── Makefile
├── README.md
├── manage.py
└── requirements.txt

cookiecutter map

click here to expand ``` . ├── bin │   └── post_compile ├── compose │   ├── local │   │   ├── django │   │   │   ├── Dockerfile │   │   │   └── start │   │   └── docs │   │   ├── Dockerfile │   │   └── start │   └── production │   ├── django │   │   ├── Dockerfile │   │   ├── entrypoint │   │   └── start │   ├── postgres │   │   ├── Dockerfile │   │   └── maintenance │   │   ├── backup │   │   ├── backups │   │   ├── restore │   │   └── _sourced │   │   ├── constants.sh │   │   ├── countdown.sh │   │   ├── messages.sh │   │   └── yes_no.sh │   └── traefik │   ├── Dockerfile │   └── traefik.yml ├── config │   ├── __init__.py │   ├── settings │   │   ├── base.py │   │   ├── __init__.py │   │   ├── local.py │   │   ├── production.py │   │   └── test.py │   ├── urls.py │   └── wsgi.py ├── CONTRIBUTORS.txt ├── cookiecutter │   ├── conftest.py │   ├── contrib │   │   ├── __init__.py │   │   └── sites │   │   ├── __init__.py │   │   └── migrations │   │   ├── 0001_initial.py │   │   ├── 0002_alter_domain_unique.py │   │   ├── 0003_set_site_domain_and_name.py │   │   ├── 0004_alter_options_ordering_domain.py │   │   └── __init__.py │   ├── __init__.py │   ├── static │   │   ├── css │   │   │   └── project.css │   │   ├── fonts │   │   ├── images │   │   │   └── favicons │   │   │   └── favicon.ico │   │   ├── js │   │   │   └── project.js │   │   └── sass │   │   ├── custom_bootstrap_vars.scss │   │   └── project.scss │   ├── templates │   │   ├── 403.html │   │   ├── 404.html │   │   ├── 500.html │   │   ├── account │   │   │   ├── account_inactive.html │   │   │   ├── base.html │   │   │   ├── email_confirm.html │   │   │   ├── email.html │   │   │   ├── login.html │   │   │   ├── logout.html │   │   │   ├── password_change.html │   │   │   ├── password_reset_done.html │   │   │   ├── password_reset_from_key_done.html │   │   │   ├── password_reset_from_key.html │   │   │   ├── password_reset.html │   │   │   ├── password_set.html │   │   │   ├── signup_closed.html │   │   │   ├── signup.html │   │   │   ├── verification_sent.html │   │   │   └── verified_email_required.html │   │   ├── base.html │   │   ├── pages │   │   │   ├── about.html │   │   │   └── home.html │   │   └── users │   │   ├── user_detail.html │   │   └── user_form.html │   ├── users │   │   ├── adapters.py │   │   ├── admin.py │   │   ├── apps.py │   │   ├── forms.py │   │   ├── __init__.py │   │   ├── migrations │   │   │   ├── 0001_initial.py │   │   │   └── __init__.py │   │   ├── models.py │   │   ├── tests │   │   │   ├── factories.py │   │   │   ├── __init__.py │   │   │   ├── test_admin.py │   │   │   ├── test_forms.py │   │   │   ├── test_models.py │   │   │   ├── test_urls.py │   │   │   └── test_views.py │   │   ├── urls.py │   │   └── views.py │   └── utils │   ├── context_processors.py │   └── __init__.py ├── docs │   ├── conf.py │   ├── howto.rst │   ├── index.rst │   ├── __init__.py │   ├── make.bat │   ├── Makefile │   ├── pycharm │   │   ├── configuration.rst │   │   └── images │   │   ├── 1.png │   │   ├── 2.png │   │   ├── 3.png │   │   ├── 4.png │   │   ├── 7.png │   │   ├── 8.png │   │   ├── f1.png │   │   ├── f2.png │   │   ├── f3.png │   │   ├── f4.png │   │   ├── issue1.png │   │   └── issue2.png │   └── users.rst ├── LICENSE ├── locale │   └── README.rst ├── local.yml ├── manage.py ├── merge_production_dotenvs_in_dotenv.py ├── Procfile ├── production.yml ├── pytest.ini ├── README.rst ├── requirements │   ├── base.txt │   ├── local.txt │   └── production.txt ├── requirements.txt ├── runtime.txt ├── setup.cfg └── tree.md 37 directories, 120 files ```

Chapter 2

virtualenv and pythonpath

You can also set your virtualenv’s PYTHONPATH to include the current directory with
the latest version of pip. Running “ pip install -e . ” from your project’s root
directory will do the trick, installing the current directory as a package that can be edited in place.

django-admin and manage.py¶
link django-admin is Django’s command-line utility for administrative tasks. This document outlines all it can do.

In addition, manage.py is automatically created in each Django project. It does the same thing as django-admin but also sets the DJANGO_SETTINGS_MODULE environment variable so that it points to your project’s settings.py file.

The django-admin script should be on your system path if you installed Django via pip. If it’s not in your path, ensure you have your virtual environment activated.

Generally, when working on a single Django project, it’s easier to use manage.py than django-admin. If you need to switch between multiple Django settings files, use django-admin with DJANGO_SETTINGS_MODULE or the –settings command line option.

The command-line examples throughout this document use django-admin to be consistent, but any example can use manage.py or python -m django just as well.

$ django-admin <command> [options]
$ manage.py <command> [options]
$ python -m django <command> [options]

django and docker

References for developing with Docker:

  • https://cookiecutter-django.readthedocs.io/en/latest/developing-locally-docker.html
  • http://bit.ly/1dWnzVW Real Python article on Django and Docker Compose
  • https://dockerbook.com

articles


.. _Using cookiecutter-django with Google Cloud Storage: https://ahhda.github.io/cloud/gce/django/2019/03/12/using-django-cookiecutter-cloud-storage.html .. _cookiecutter-django with Nginx, Route 53 and ELB: https://msaizar.com/blog/cookiecutter-django-nginx-route-53-and-elb/ .. _cookiecutter-django and Amazon RDS: https://msaizar.com/blog/cookiecutter-django-and-amazon-rds/ .. _Exploring with Cookiecutter: http://www.snowboardingcoder.com/django/2016/12/03/exploring-with-cookiecutter/ .. _Using Cookiecutter to Jumpstart a Django Project on Windows with PyCharm: https://joshuahunter.com/posts/using-cookiecutter-to-jumpstart-a-django-project-on-windows-with-pycharm/

.. _Development and Deployment of Cookiecutter-Django via Docker: https://realpython.com/blog/python/development-and-deployment-of-cookiecutter-django-via-docker/ .. _Development and Deployment of Cookiecutter-Django on Fedora: https://realpython.com/blog/python/development-and-deployment-of-cookiecutter-django-on-fedora/ .. _How to create a Django Application using Cookiecutter and Django 1.8: https://www.swapps.io/blog/how-to-create-a-django-application-using-cookiecutter-and-django-1-8/ .. _Introduction to Cookiecutter-Django: http://krzysztofzuraw.com/blog/2016/django-cookiecutter.html .. _Django and GitLab - Running Continuous Integration and tests with your FREE account: http://dezoito.github.io/2016/05/11/django-gitlab-continuous-integration-phantomjs.html

link not working?, click below
  1. /2nujh0e
  2. /3f2pjuk
  3. /3ql9vki
  4. /35fskkd
  5. /3pb3wov
  6. /2yfqhbz
  7. /2lojuac
  8. /2kieriu
  9. /39vtww7
  10. /2ke7reo
  11. /django-db-models-foreignkey
  12. /3idkv3n
  13. /django-3-choice-classes
  14. /3ctu5tq
  15. /pg13-ubuntu-installer
  16. /3cx0ort
  17. /2eqtagk
  18. /3huub2k
  19. /3mimvup
  20. /35vflm0
  21. /br-products
  22. /2rqx59a
  23. /dcc-live
  24. /3k2c6kh
  25. /env_sample_windows
  26. /3m3mwhy
  27. /env-sample-mac-or-linux
  28. /2eb1bea
  29. /tools2scoops
  30. /2ebp3hh
  31. /3jq5lud
  32. /2q81b7l
  33. /34ehdk1
  34. /2cnupmh
  35. /authorized-vendors
  36. /30pfilx
  37. /2pls3w2
  38. /3hdoxzn
  39. /tsd3x-live-class
  40. /2vsi3my
  41. /2bcqux0
  42. /multiple-user-types
  43. /2bkxqkd
  44. /2zlhuqh
  45. /31nmwfw
  46. /2bdage4
  47. /3feeso3
  48. /3hmdgob
  49. /2x7avrz
  50. /3dyaxfq
  51. /2xdoknp
  52. /2znngjc
  53. /3galth9
  54. /2aknxyp
  55. /3bqrm6d
  56. /tsd3x-on-store
  57. /3fz3bkn
  58. /3bouohm
  59. /3drfeik
  60. /2wgm0tr
  61. /3bcmhk0
  62. /3cdvq1t
  63. /3f77ahj
  64. /2yng5rs
  65. /2yewrxj
  66. /3ev1duf
  67. /35c3ney
  68. /2vj1y5e
  69. /3f0ezpp
  70. /2yriqog
  71. /3boffhx
  72. /35gs7t2
  73. /3bpcmer
  74. /2yripkc
  75. /2vmftk0
  76. /2ywrybm
  77. /2vjlcyl
  78. /3alltoi
  79. /2vjvgcn
  80. /2wcnz1y
  81. /2kkwumq
  82. /35gzpfn
  83. /2yfqhbz
  84. /2yv4qtn
  85. /2xea7xq
  86. /2kieriu
  87. /3f0evgb
  88. /2khtpwt
  89. /2skug66
  90. /2kuwk0b
  91. /3bmrhej
  92. /3f0ev99
  93. /2shvquh
  94. /35f7ztm
  95. /35fskkd
  96. /2yh01pg
  97. /3f2ip67
  98. /3byfhn2
  99. /2yc94ht
  100. /3etodys
  101. /2kkwwnw
  102. /2wco5xo
  103. /2zaevfh
  104. /2sezssc
  105. /2ye9ofv
  106. /2yc94ar
  107. /2vjw4fk
  108. /3f2iuxt
  109. /3f0u4yc
  110. /35d3d6j
  111. /2yjxmwl
  112. /2yc93dp
  113. /2xgjoi8
  114. /2zd4heb
  115. /3bm9poj
  116. /2w5lntl
  117. /2kewsg2
  118. /2yc936n
  119. /2w9f6wv
  120. /3f2pjuk
  121. /3bl4gwy
  122. /2wcnxxu
  123. /3ez6lra
  124. /2simepd
  125. /2kgjkey
  126. /2y01snh
  127. /2klzrhi
  128. /2ygg6xs
  129. /2si4yts
  130. /3amyjhq
  131. /2kfi4bb
  132. /unusual-javascript
  133. /2zszq4j
  134. /products
  135. /3bdjah4
  136. /chocolatey-cmd-installer
  137. /3bzalba
  138. /choco-tutorial
  139. /2wortfr
  140. /transactions-in-mysql
  141. /3aezlsz
  142. /model-indexes
  143. /2xviakl
  144. /field-choices
  145. /2xlf5eu
  146. /historical-models
  147. /3covkcf
  148. /model-managers
  149. /2xqonqw
  150. /runsql
  151. /2vfzddm
  152. /runpython
  153. /3csjp7u
  154. /model-inheritance
  155. /3ahwuxk
  156. /vscode-ubuntu-installer
  157. /3ecoixk
  158. /pg12-ubuntu-installer
  159. /2wqnao9
  160. /1zuu7b0
  161. /wheel-building-fails-cpython-35
  162. /1lkee9m
  163. /1itwrwp
  164. /iedjangogirls-app
  165. /1jumguf
  166. /1yrevti
  167. /djpolls
  168. /1fploom
  169. /1vpaqqf
  170. /pyconstartuprowla
  171. /1sejwyf
  172. /xsw6rb
  173. /submit-to-pypi
  174. /yyme8e
  175. /k8y8rf
  176. /juute9
  177. /iecehh
  178. /iqabop
  179. /j2pjfx
  180. /i2kwal
  181. /hxu1k2
  182. /hode7c
  183. /hcufoh
  184. /xeqode
  185. /xtrvxe
  186. /zoazce
  187. /z6ftxc
  188. /zkho0m
  189. /azglcl
  190. /zuxjuv
  191. /ujtz8g
  192. /vr1pln
  193. /ufqekg
  194. /syamtq
  195. /tckkxj
  196. /oe2nyx
  197. /n1wxh6
  198. /qlzwii
  199. /qjc6tu
  200. /nzougo
  201. /okirfz
  202. /qqtvq6
  203. /qdukhr
  204. /q4mbed
  205. /ndobqc
  206. /q5hpyr
  207. /pjqjw5
  208. /nebxbm
  209. /ouvurh
  210. /mza1be
  211. /odgn0p
  212. /o9gteg
  213. /omjbxi
  214. /qcwcw0
  215. /qs61bm
  216. /omzla2
  217. /gpzfai
  218. /bnfcis
  219. /a2xgvf
  220. /dowdyq
  221. /9hok38
  222. /br98hj
  223. /cavzlx
  224. /dsyxpa
  225. /cw8hqf
  226. /9fiu6r
  227. /boo6mf
  228. /blkatm
  229. /aedgx0
  230. /17zwdy
  231. /vmjig
  232. /1fb1oz
  233. /7tqyi
  234. /ydepl
  235. /k8rv7
  236. /3ghray
  237. /18t0dy
  238. /dwppj
  239. /19tnql
  240. /17sik0
  241. /4zud5m
  242. /3uwsw
  243. /1t6mty
  244. /1518in
  245. /vifmk
  246. /12hexp
  247. /jt3pa
  248. /ppp
Tags: