PythonHub
2.35K subscribers
2.35K photos
49K links
News & links about Python programming.
https://pythonhub.dev/
Download Telegram
Talk to Django with natural language. Text to SQL and more.

The video demonstrates using Djeno database for natural language to SQL queries via embeddings, emphasizing semantic search, and integration with Django. It covers setting up PostgreSQL, creating Django models, embedding for efficient search, and caching for performance, while addressing bugs and customizing prompts in the SQL engine.

https://www.youtube.com/watch?v=GfDJ-Sxn4dE
A Knownbits Abstract Domain for the Toy Optimizer, Correctly

The article discusses the implementation of a "Knownbits" abstract domain for the Toy optimizer, which tracks individual bits of a variable as "known zero," "known one," or "unknown" to optimize integer operations. It details the construction of the domain, transfer functions, and correctness proofs using property-based testing and automated proofs, with plans to apply a more complex ver...

https://pypy.org/posts/2024/08/toy-knownbits.html
👍1
Django 5.1 released

Django 5.1 introduces LoginRequiredMiddleware for easier authentication enforcement, accessibility enhancements like improved screen reader support and better HTML semantics, and a new querystring template tag for simpler URL handling in templates.

https://www.djangoproject.com/weblog/2024/aug/07/django-51-released/
👍2
RAG Fundamentals and Advanced Techniques

This course will guide you through the basics of Retrieval-Augmented Generation (RAG), starting with its fundamental concepts and components. You'll learn how to build a RAG system for chatting with documents, explore advanced techniques, and understand the pitfalls of naive RAG.

https://www.youtube.com/watch?v=ea2W8IogX80
👍1
Log context propagation in Python ASGI apps

The article explains how to implement log context propagation in Python ASGI applications using middleware to automatically tag log messages with contextual information like user ID and platform. This approach simplifies logging by eliminating the need for manual context passing across different layers of an application, ensuring all logs within a request-response cycle are consistently ...

https://rednafi.com/python/log_context_propagation/
Crawling Pages with Infinite Scroll using Scrapy and Playwright

This post provides a detailed guide on how to scrape infinite scroll websites using Scrapy and Playwright in Python. It covers the setup process, explains how to implement a custom downloader middleware to handle JavaScript rendering, and demonstrates how to extract data from dynamically loaded content, offering a practical solution for web scraping challenges posed by modern web applica...

https://www.xiegerts.com/post/infinite-scroll-scrapy-playwright/
FlexAttention: The Flexibility of PyTorch with the Performance of FlashAttention

https://pytorch.org/blog/flexattention/