PySAPRPA: Automate SAP Processes Effortlessly with Python
Hi All,
What my project does:
Introducing PySAPRPA: a Python library that allows users to automate SAP processes in just a few lines of code. Leveraging the power of the
The library also allows for easy parameter setting with the
Target audience:
Anyone who has ever used SAP. This library is very helpful for data mining, data entry, and testing because it’s simple, easy to debug, and takes minutes to setup.
Comparison:
While other libraries have similar value setting logic, I haven’t seen any others that automatically find and label objects, which is the most time consuming part of automating.
Here's an example code block automating t-code: MB51
Feel free to use, and let me know if you find any bugs. Docs are on the github wiki
GitHub Repo
/r/Python
https://redd.it/1e5ssrt
Hi All,
What my project does:
Introducing PySAPRPA: a Python library that allows users to automate SAP processes in just a few lines of code. Leveraging the power of the
GetObjectTree method, PySAPRPA automatically identifies and labels SAP objects, eliminating the need for manual script recording.The library also allows for easy parameter setting with the
set_parameters() method. Using the automatically identified objects, set_parameters() takes kwargs to set values for fields, buttons, and other interactive elementsTarget audience:
Anyone who has ever used SAP. This library is very helpful for data mining, data entry, and testing because it’s simple, easy to debug, and takes minutes to setup.
Comparison:
While other libraries have similar value setting logic, I haven’t seen any others that automatically find and label objects, which is the most time consuming part of automating.
Here's an example code block automating t-code: MB51
import pysaprpa as pysapsession = pysap.connect_SAP()conn = ObjectTree(session).start_transaction('MB51')conn.get_objects().set_parameters(plant_TEXT=['100', '200'], movement_type_TEXT=['101', '102'], posting_date_TEXT=(7, 2024), layout_TEXT='EXAMPLE', database_FLAG=True)conn.execute().get_objects().export(how='spreadsheet', directory='/fake/path', file_name=EXPORT.XLSX').end_transaction()Feel free to use, and let me know if you find any bugs. Docs are on the github wiki
GitHub Repo
/r/Python
https://redd.it/1e5ssrt
GitHub
GitHub - eoinomahon/PySAPRPA: PySAPRPA enables users to effortlessly automate SAP processes
PySAPRPA enables users to effortlessly automate SAP processes - eoinomahon/PySAPRPA
Dynamic Enterprise RAG project utilizing Microsoft SharePoint as a data source
Hi r/Python,
I'm excited to share a project that utilizes Microsoft SharePoint to create dynamic Enterprise Retrieval-Augmented Generation (RAG) pipelines.
**Repo Link**: [https://pathway.com/developers/templates/enterprise\_rag\_sharepoint](https://pathway.com/developers/templates/enterprise_rag_sharepoint)
# What My Project Does:
In large enterprises, Microsoft SharePoint serves as a critical platform for document management, akin to Google Drive for individual users. This template makes it easy to build powerful RAG applications that deliver up-to-date answers and insights, enhancing productivity and collaboration.
# Key Features:
* **Dynamic Real-Time Sync**: Ensures your RAG app always reflects the latest changes in SharePoint files.
* **Robust Security**: Includes comprehensive steps to set up Entra ID and SSL authentication.
* **Scalability**: Designed with optimal frameworks and a minimalist architecture for secure and scalable solutions.
* **Ease of Setup**: Allows you to deploy the app template in Docker within minutes.
# Target Audience:
Designed for enterprises needing efficient document management and retrieval. Production-ready with a focus on security, scalability, and ease of integration.
# Comparison:
Seamlessly integrates with SharePoint, ensuring real-time sync and robust security, unlike other alternatives. The scalable, minimalist architecture is easy to deploy and manage.
# Planned Enhancements:
* [~Adaptive RAG~](https://pathway.com/developers/templates/adaptive-rag): Implementing cost-effective strategies without sacrificing accuracy.
* [~Pathway Rerankers~](https://pathway.com/developers/user-guide/llm-xpack/overview/#rerankers): Integrating advanced reranking techniques for improved results.
* [~Multimodal Pipelines with Hybrid Indexes~](https://github.com/pathwaycom/llm-app/tree/main/examples/pipelines/slides_ai_search): Using advanced parsing capabilities and indexing techniques
I'm excited to hear
/r/Python
https://redd.it/1e6alk8
Hi r/Python,
I'm excited to share a project that utilizes Microsoft SharePoint to create dynamic Enterprise Retrieval-Augmented Generation (RAG) pipelines.
**Repo Link**: [https://pathway.com/developers/templates/enterprise\_rag\_sharepoint](https://pathway.com/developers/templates/enterprise_rag_sharepoint)
# What My Project Does:
In large enterprises, Microsoft SharePoint serves as a critical platform for document management, akin to Google Drive for individual users. This template makes it easy to build powerful RAG applications that deliver up-to-date answers and insights, enhancing productivity and collaboration.
# Key Features:
* **Dynamic Real-Time Sync**: Ensures your RAG app always reflects the latest changes in SharePoint files.
* **Robust Security**: Includes comprehensive steps to set up Entra ID and SSL authentication.
* **Scalability**: Designed with optimal frameworks and a minimalist architecture for secure and scalable solutions.
* **Ease of Setup**: Allows you to deploy the app template in Docker within minutes.
# Target Audience:
Designed for enterprises needing efficient document management and retrieval. Production-ready with a focus on security, scalability, and ease of integration.
# Comparison:
Seamlessly integrates with SharePoint, ensuring real-time sync and robust security, unlike other alternatives. The scalable, minimalist architecture is easy to deploy and manage.
# Planned Enhancements:
* [~Adaptive RAG~](https://pathway.com/developers/templates/adaptive-rag): Implementing cost-effective strategies without sacrificing accuracy.
* [~Pathway Rerankers~](https://pathway.com/developers/user-guide/llm-xpack/overview/#rerankers): Integrating advanced reranking techniques for improved results.
* [~Multimodal Pipelines with Hybrid Indexes~](https://github.com/pathwaycom/llm-app/tree/main/examples/pipelines/slides_ai_search): Using advanced parsing capabilities and indexing techniques
I'm excited to hear
/r/Python
https://redd.it/1e6alk8
How to create flask REST API
Can someone explain to me like the proper way I can build a flask REST API, like a way that can be used in production.
I looked into many blogs and videos and saw some of them just using jsonify to return data and some of them using entirely different packages?
Which is the proper way?
/r/flask
https://redd.it/1e6ct0s
Can someone explain to me like the proper way I can build a flask REST API, like a way that can be used in production.
I looked into many blogs and videos and saw some of them just using jsonify to return data and some of them using entirely different packages?
Which is the proper way?
/r/flask
https://redd.it/1e6ct0s
Reddit
From the flask community on Reddit
Explore this post and more from the flask community
Is there an aiohttp-based reusable api client?
In my previous job I had a custom aiohttp-based api client written in object oriented style. It was an incredibly easy thing to use, you just inherit from a class and then override all the things that are specific for a particular API. For example authentication and stuff like that. All the other things that are commonly used continue to be default.
But there is no such a library in Python. The only thing I found is aiohttp-api-client but this one seems to not be maintained and looks unpopular
Do you actually write different new clients with aiohttp from scratch every time you want to call a particular api?
/r/Python
https://redd.it/1e64tuy
In my previous job I had a custom aiohttp-based api client written in object oriented style. It was an incredibly easy thing to use, you just inherit from a class and then override all the things that are specific for a particular API. For example authentication and stuff like that. All the other things that are commonly used continue to be default.
But there is no such a library in Python. The only thing I found is aiohttp-api-client but this one seems to not be maintained and looks unpopular
Do you actually write different new clients with aiohttp from scratch every time you want to call a particular api?
/r/Python
https://redd.it/1e64tuy
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
I made a family dashboard using Flask (code included)
DinkyDash is a simple, customizable dashboard designed to display family-oriented information such as recurring tasks, countdowns to special events, and daily rotations. It’s perfect for mounting on a Raspberry Pi with a display in a common area of your home, providing at-a-glance information for all family members.
https://preview.redd.it/pd6rp9f51bdd1.png?width=1200&format=png&auto=webp&s=dd561fe822f610a4c55088612dcf95d6ea75401f
DinkyDash is great for quickly answering those questions that kids like to ask again and again and again and again.
“How many days till Christmas?”
“Who’s turn is it to take the trash out?”
“When is my birthday party?”
The dashboard shows:
Today’s date
Recurring tasks or roles (e.g., who’s turn it is to do the dishes)
Countdowns to important dates (birthdays, holidays, events)
DinkyDash is built with Flask and can be easily configured using a YAML file, making it simple to update and maintain without diving into the code.
Get the code on GitHub
/r/flask
https://redd.it/1e6fo4o
DinkyDash is a simple, customizable dashboard designed to display family-oriented information such as recurring tasks, countdowns to special events, and daily rotations. It’s perfect for mounting on a Raspberry Pi with a display in a common area of your home, providing at-a-glance information for all family members.
https://preview.redd.it/pd6rp9f51bdd1.png?width=1200&format=png&auto=webp&s=dd561fe822f610a4c55088612dcf95d6ea75401f
DinkyDash is great for quickly answering those questions that kids like to ask again and again and again and again.
“How many days till Christmas?”
“Who’s turn is it to take the trash out?”
“When is my birthday party?”
The dashboard shows:
Today’s date
Recurring tasks or roles (e.g., who’s turn it is to do the dishes)
Countdowns to important dates (birthdays, holidays, events)
DinkyDash is built with Flask and can be easily configured using a YAML file, making it simple to update and maintain without diving into the code.
Get the code on GitHub
/r/flask
https://redd.it/1e6fo4o
Is it really best for backend only or is that just a myth
I've seen a couple of tutorials now specifying that Django is best used for backend and not for rendering html. It 'can' do html if you really want to but it's not great or something....
Well if I can, why shouldn't I? What's wrong with using Django for rendering my html? It even does jinja2 for templating.
The tutorials I watched just said it and didn't explain anything about their reasoning behind it (probably just copying others).
Is there any truth to it? And if so, what's the reason?
/r/djangolearning
https://redd.it/1e6fbjh
I've seen a couple of tutorials now specifying that Django is best used for backend and not for rendering html. It 'can' do html if you really want to but it's not great or something....
Well if I can, why shouldn't I? What's wrong with using Django for rendering my html? It even does jinja2 for templating.
The tutorials I watched just said it and didn't explain anything about their reasoning behind it (probably just copying others).
Is there any truth to it? And if so, what's the reason?
/r/djangolearning
https://redd.it/1e6fbjh
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Help with form layout/logic
Hi guys. I'm looking for some input on the design of a dynamic form I'm trying to make. The goal of the form is to allow the user to create an activity. This activity has a start date and an end date (date of the first activity and date of the last activity) and times the activity will run (e.g. 8am-10am).
However, I'd like to give the user the option to specify a different start time and end time for an activity on a certain month or months.
Currently I have the following:
https://preview.redd.it/zchu0z5lh9dd1.png?width=1082&format=png&auto=webp&s=c56bcbd23cc8f5bc2e2e669d00136307b37e6cdf
Based on the user selection of Activity Frequency (Weekly or Monthly), HTMX fetches a different form and appends it beneath in a placeholder div.
https://preview.redd.it/98u8joixh9dd1.png?width=1061&format=png&auto=webp&s=b9ceeae2a657e043be3789363eddde08c8ff6b79
In in the Monthly form, the user has the choice to change the start and end time of the activity for certain months. Clicking "Add Another" appends an additional form below the first. The code for this form is below.
class DifferentTimePerMonth(forms.Form):
MONTHS =
(0, 'Jan'),
(1, 'Feb'),
(2, 'Mar'),
/r/djangolearning
[https://redd.it/1e693ft
Hi guys. I'm looking for some input on the design of a dynamic form I'm trying to make. The goal of the form is to allow the user to create an activity. This activity has a start date and an end date (date of the first activity and date of the last activity) and times the activity will run (e.g. 8am-10am).
However, I'd like to give the user the option to specify a different start time and end time for an activity on a certain month or months.
Currently I have the following:
https://preview.redd.it/zchu0z5lh9dd1.png?width=1082&format=png&auto=webp&s=c56bcbd23cc8f5bc2e2e669d00136307b37e6cdf
Based on the user selection of Activity Frequency (Weekly or Monthly), HTMX fetches a different form and appends it beneath in a placeholder div.
https://preview.redd.it/98u8joixh9dd1.png?width=1061&format=png&auto=webp&s=b9ceeae2a657e043be3789363eddde08c8ff6b79
In in the Monthly form, the user has the choice to change the start and end time of the activity for certain months. Clicking "Add Another" appends an additional form below the first. The code for this form is below.
class DifferentTimePerMonth(forms.Form):
MONTHS =
(0, 'Jan'),
(1, 'Feb'),
(2, 'Mar'),
/r/djangolearning
[https://redd.it/1e693ft
Friday Daily Thread: r/Python Meta and Free-Talk Fridays
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1e6q1qs
# Weekly Thread: Meta Discussions and Free Talk Friday 🎙️
Welcome to Free Talk Friday on /r/Python! This is the place to discuss the r/Python community (meta discussions), Python news, projects, or anything else Python-related!
## How it Works:
1. Open Mic: Share your thoughts, questions, or anything you'd like related to Python or the community.
2. Community Pulse: Discuss what you feel is working well or what could be improved in the /r/python community.
3. News & Updates: Keep up-to-date with the latest in Python and share any news you find interesting.
## Guidelines:
All topics should be related to Python or the /r/python community.
Be respectful and follow Reddit's Code of Conduct.
## Example Topics:
1. New Python Release: What do you think about the new features in Python 3.11?
2. Community Events: Any Python meetups or webinars coming up?
3. Learning Resources: Found a great Python tutorial? Share it here!
4. Job Market: How has Python impacted your career?
5. Hot Takes: Got a controversial Python opinion? Let's hear it!
6. Community Ideas: Something you'd like to see us do? tell us.
Let's keep the conversation going. Happy discussing! 🌟
/r/Python
https://redd.it/1e6q1qs
Redditinc
Reddit Rules
Reddit Rules - Reddit
Use Python to get Pydantic models and Python types from your LLM responses.
Hi r/Python!
I am excited to share a python package that I have slowly been working on over the last few months. It is called *modelsmith*.
Repo link:[ ~https://github.com/christo-olivier/modelsmith~](https://github.com/christo-olivier/modelsmith)
Documentation:[ ~https://christo-olivier.github.io/modelsmith/~](https://christo-olivier.github.io/modelsmith/)
# What My Project Does:
Modelsmith is a Python library that allows you to get structured responses in the form of Pydantic models and Python types from Anthropic, Google Vertex AI, and OpenAI models.
It has a default prompt built in to allow entity extraction from any text prompt. It uses the default prompt and the python type or pydantic model you specify as your expected output, then it processes the text you passed as your user input and tries to extract an instance of your desired output for you.
But you are not limited to using the default prompt or behaviour. You can customise to your heart's content.
**Key features:**
* **Structured Responses**: Specify both Pydantic models and Python types as the outputs of your LLM responses.
* **Templating**: Use Jinja2 templating in your prompts to allow complex prompt logic.
* **Default and Custom Prompts**: A default entity extraction prompt template is provided but you can also specify your own prompt templates.
* **Retry Logic**: Number of retries is user configurable.
* **Validation**: Outputs from the LLM are validated against your
/r/Python
https://redd.it/1e6l3qp
Hi r/Python!
I am excited to share a python package that I have slowly been working on over the last few months. It is called *modelsmith*.
Repo link:[ ~https://github.com/christo-olivier/modelsmith~](https://github.com/christo-olivier/modelsmith)
Documentation:[ ~https://christo-olivier.github.io/modelsmith/~](https://christo-olivier.github.io/modelsmith/)
# What My Project Does:
Modelsmith is a Python library that allows you to get structured responses in the form of Pydantic models and Python types from Anthropic, Google Vertex AI, and OpenAI models.
It has a default prompt built in to allow entity extraction from any text prompt. It uses the default prompt and the python type or pydantic model you specify as your expected output, then it processes the text you passed as your user input and tries to extract an instance of your desired output for you.
But you are not limited to using the default prompt or behaviour. You can customise to your heart's content.
**Key features:**
* **Structured Responses**: Specify both Pydantic models and Python types as the outputs of your LLM responses.
* **Templating**: Use Jinja2 templating in your prompts to allow complex prompt logic.
* **Default and Custom Prompts**: A default entity extraction prompt template is provided but you can also specify your own prompt templates.
* **Retry Logic**: Number of retries is user configurable.
* **Validation**: Outputs from the LLM are validated against your
/r/Python
https://redd.it/1e6l3qp
N Fish Speech 1.3 Update: Enhanced Stability, Emotion, and Voice Cloning
We're excited to announce that Fish Speech 1.3 now offers enhanced stability and emotion, and can clone anyone's voice with just a 10-second audio prompt! As strong advocates of the open-source community, we've open-sourced Fish Speech 1.2 SFT today and introduced an Auto Reranking system. Stay tuned as we'll be open-sourcing Fish Speech 1.3 soon! We look forward to hearing your feedback.
Playground (DEMO): http://fish.audio
GitHub: fishaudio/fish-speech
/r/MachineLearning
https://redd.it/1e6g122
We're excited to announce that Fish Speech 1.3 now offers enhanced stability and emotion, and can clone anyone's voice with just a 10-second audio prompt! As strong advocates of the open-source community, we've open-sourced Fish Speech 1.2 SFT today and introduced an Auto Reranking system. Stay tuned as we'll be open-sourcing Fish Speech 1.3 soon! We look forward to hearing your feedback.
Playground (DEMO): http://fish.audio
GitHub: fishaudio/fish-speech
/r/MachineLearning
https://redd.it/1e6g122
fish.audio
Fish Audio
TTS and voice cloning with unmatched emotion control.
I started with pure Django and ended up with Django + DRF + AlpineJS
I am building a bookings management app that has a fairly interactive user interface. I initially started with pure Django where to add or modify a booking on the calendar required a full page load. I then was recommended to use HTMX to help avoid the full page loads for every interaction and some said AlpineJs would be good to add some front-end interactions that would complement HTMX.
HTMX seems great for very simple things, but over time I kept finding myself using AlpineJS instead because it would also manage state.
After a year of building I seem to be using a stack that I don't seem to hear much about and I would like to hear some opinions, pros and cons about it.
I'm using Alpine for everything now. I basically have for each major section of my application a dedicated Alpine store that contains the relevant functions and manages state for that section (createBooking, updateBooking, submitForm, etc).
On my backend views I use DRF to serialize the data and return it to my Alpine store that then updates the page in a reactive manner.
This seems to be working for me, since I'm not
/r/django
https://redd.it/1e6ed7b
I am building a bookings management app that has a fairly interactive user interface. I initially started with pure Django where to add or modify a booking on the calendar required a full page load. I then was recommended to use HTMX to help avoid the full page loads for every interaction and some said AlpineJs would be good to add some front-end interactions that would complement HTMX.
HTMX seems great for very simple things, but over time I kept finding myself using AlpineJS instead because it would also manage state.
After a year of building I seem to be using a stack that I don't seem to hear much about and I would like to hear some opinions, pros and cons about it.
I'm using Alpine for everything now. I basically have for each major section of my application a dedicated Alpine store that contains the relevant functions and manages state for that section (createBooking, updateBooking, submitForm, etc).
On my backend views I use DRF to serialize the data and return it to my Alpine store that then updates the page in a reactive manner.
This seems to be working for me, since I'm not
/r/django
https://redd.it/1e6ed7b
Reddit
From the django community on Reddit
Explore this post and more from the django community
Caching Auth/Permission?
I've been exploring Django Silk SQL profiles for a number of common actions with my server. Something I noticed is that for a lot of them, half the queries are just about auth. In one case, a POST causes 9 SQL queries, 4 of which are auth, which includes 7 joins and takes up 50% of the SQL execution time.
I do sometimes add/remove/update users. But those tables change maybe once per day. So it feels ripe for some local caching.
Is there a sensible approach for caching these lookups without completely tearing apart `django.contrib.auth` If this was my own code, I know how to use caching, but it's not so I'm not sure where I could hook into Django's attempt to retrieve all these data.
/r/django
https://redd.it/1e6s08m
I've been exploring Django Silk SQL profiles for a number of common actions with my server. Something I noticed is that for a lot of them, half the queries are just about auth. In one case, a POST causes 9 SQL queries, 4 of which are auth, which includes 7 joins and takes up 50% of the SQL execution time.
I do sometimes add/remove/update users. But those tables change maybe once per day. So it feels ripe for some local caching.
Is there a sensible approach for caching these lookups without completely tearing apart `django.contrib.auth` If this was my own code, I know how to use caching, but it's not so I'm not sure where I could hook into Django's attempt to retrieve all these data.
/r/django
https://redd.it/1e6s08m
Reddit
From the django community on Reddit
Explore this post and more from the django community
connect to AWS RDS mysql database for querying NOT use it as the backend
I want my django app to be able to read from a 5.7 mysql db in RDS, and I haven't been able to find how to do this. I do not want this database to be the backend for my app. Should I use the rds or rds-data sdk? I haven't found an example of how to configure these though. Or do I just use a generic mysql driver? (It seems like better practice would be to use AWS rather than user/pass to authenticate though)
/r/django
https://redd.it/1e6qli8
I want my django app to be able to read from a 5.7 mysql db in RDS, and I haven't been able to find how to do this. I do not want this database to be the backend for my app. Should I use the rds or rds-data sdk? I haven't found an example of how to configure these though. Or do I just use a generic mysql driver? (It seems like better practice would be to use AWS rather than user/pass to authenticate though)
/r/django
https://redd.it/1e6qli8
Reddit
From the django community on Reddit
Explore this post and more from the django community
Learning django for internship (months or two)
I am learning django to get internship as fast as possible.
Realistically speaking how much time it should takes for me to learn.
I know postgressql, python, theory related to web and protocols. Etc basic networking theory.
I have also done basic Linux administration like setting mail server or Apache Web server type things.
I am trying to get internship in django. Also I am learning about nginx web server.
Is this a good approach I am trying to get internship or fresher job.
/r/djangolearning
https://redd.it/1e6xr1y
I am learning django to get internship as fast as possible.
Realistically speaking how much time it should takes for me to learn.
I know postgressql, python, theory related to web and protocols. Etc basic networking theory.
I have also done basic Linux administration like setting mail server or Apache Web server type things.
I am trying to get internship in django. Also I am learning about nginx web server.
Is this a good approach I am trying to get internship or fresher job.
/r/djangolearning
https://redd.it/1e6xr1y
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
Django Templates
what is best place for finding ready templates ?
/r/djangolearning
https://redd.it/1e7959m
what is best place for finding ready templates ?
/r/djangolearning
https://redd.it/1e7959m
Reddit
From the djangolearning community on Reddit
Explore this post and more from the djangolearning community
D Answer explainability and transparency with Retrieval Augmented Generation model
Hi everyone,
I've been exploring the fascinating world of Retrieval-Augmented Generation (RAG) systems, and their ability to combine large language models with retrieval mechanisms to provide accurate and contextually rich answers is truly impressive. However, I've been wondering about the explainability and transparency of the answers these models generate. Specifically, I'm curious about understanding which parts of the provided context are being used by the model to generate its answers.
Despite my efforts, I haven't been able to find much relevant research, articles, or public use cases on this topic. Is it just me, am I not googling using the appropriate keywords, or is there genuinely a lack of research in this area? I believe it's crucial to know how the model arrives at its answers, especially in applications where trust and verification of the information are important.
I'm eager to hear your thoughts and experiences. If you have worked with RAG or similar models, how do you ensure the answers are explainable and transparent? Any best practices or insights would be greatly appreciated.
Looking forward to your responses!
/r/MachineLearning
https://redd.it/1e77yul
Hi everyone,
I've been exploring the fascinating world of Retrieval-Augmented Generation (RAG) systems, and their ability to combine large language models with retrieval mechanisms to provide accurate and contextually rich answers is truly impressive. However, I've been wondering about the explainability and transparency of the answers these models generate. Specifically, I'm curious about understanding which parts of the provided context are being used by the model to generate its answers.
Despite my efforts, I haven't been able to find much relevant research, articles, or public use cases on this topic. Is it just me, am I not googling using the appropriate keywords, or is there genuinely a lack of research in this area? I believe it's crucial to know how the model arrives at its answers, especially in applications where trust and verification of the information are important.
I'm eager to hear your thoughts and experiences. If you have worked with RAG or similar models, how do you ensure the answers are explainable and transparent? Any best practices or insights would be greatly appreciated.
Looking forward to your responses!
/r/MachineLearning
https://redd.it/1e77yul
Reddit
From the MachineLearning community on Reddit
Explore this post and more from the MachineLearning community
Dodecaphony: Algorithmic Composition of Modern Classical Music
What does this project do?
My Python package is named after an alternative musical system. The vast majority of music is tonal (at least, in Western culture). In the 20th century, composers started to look for novel principles of music creation. Although some of these were based on the music of non-Western nations, some others were developed from scratch. The most famous of such musical paradigms is called the twelve-tone technique and it is also known as dodecaphony.
As a software developer, I am interested in dodecaphony, because it is logic-oriented and has many symmetries. I find it very suitable for combinatorial optimization.
So, I created a tool that takes YAML config as input and generates MIDI and WAV musical fragments in the twelve-tone technique. Given enough number of properly filled configs, it is possible to stack output fragments together and get a complete musical track.
This is a production-grade tool, not a toy project. With this tool, I released a 26-minutes album on Spotify and many other streaming platforms. However, main melodies for the album were written manually by myself and a lot of hard work was done with configs, but, nevertheless, the package really helped to generate background melodies. To read more
/r/Python
https://redd.it/1e6zh24
What does this project do?
My Python package is named after an alternative musical system. The vast majority of music is tonal (at least, in Western culture). In the 20th century, composers started to look for novel principles of music creation. Although some of these were based on the music of non-Western nations, some others were developed from scratch. The most famous of such musical paradigms is called the twelve-tone technique and it is also known as dodecaphony.
As a software developer, I am interested in dodecaphony, because it is logic-oriented and has many symmetries. I find it very suitable for combinatorial optimization.
So, I created a tool that takes YAML config as input and generates MIDI and WAV musical fragments in the twelve-tone technique. Given enough number of properly filled configs, it is possible to stack output fragments together and get a complete musical track.
This is a production-grade tool, not a toy project. With this tool, I released a 26-minutes album on Spotify and many other streaming platforms. However, main melodies for the album were written manually by myself and a lot of hard work was done with configs, but, nevertheless, the package really helped to generate background melodies. To read more
/r/Python
https://redd.it/1e6zh24
Reddit
From the Python community on Reddit
Explore this post and more from the Python community
i need help with a project
hi there i am doing a project for my fullstack course but have come across an issue I am trying to make a detailed post view put once I added it to my URLs.py I get this error
Reverse for 'postdetail' with arguments '('DEAD-BY-DAYLIGHT’S-MYTHIC-TOME-EXPLORES-YUI-KIMURA-AND-THE-SPIRIT',)' not found. 1 pattern(s) tried: ['(?P<slug>[-a-zA-Z0-9]+)/\\Z']
and it is saying this line is giving me that error
<a href="{% url 'post_detail' post.slug %}" class="post-link black-text">
but when I delete this from my urls.py
path('<slug:slug>/', views.postdetail, name='postdetail'),
my page loads again how do I fix it
/r/django
https://redd.it/1e7dhlg
hi there i am doing a project for my fullstack course but have come across an issue I am trying to make a detailed post view put once I added it to my URLs.py I get this error
Reverse for 'postdetail' with arguments '('DEAD-BY-DAYLIGHT’S-MYTHIC-TOME-EXPLORES-YUI-KIMURA-AND-THE-SPIRIT',)' not found. 1 pattern(s) tried: ['(?P<slug>[-a-zA-Z0-9]+)/\\Z']
and it is saying this line is giving me that error
<a href="{% url 'post_detail' post.slug %}" class="post-link black-text">
but when I delete this from my urls.py
path('<slug:slug>/', views.postdetail, name='postdetail'),
my page loads again how do I fix it
/r/django
https://redd.it/1e7dhlg
Stateful Objects and Data Types in Python: Pyliven
A new way to calculate in python!
If you have used ReactJS, you might have encountered the famous useState hook and have noticed how it updates the UI every time you update a variable. I looked around and couldn't find something similar for python. And hence, I built this package called **Pyliven**
**What My Project Does**
I have released the first version and as of now, it supports a stateful numeric data-type called LiveNum. It can be used to create dependent expressions which can be updated by just updating dependencies. The functionality is illustrated by a simple code block below:
a = LiveNum(3)
b = 2 * a
print(b) # 6
a.update(4)
print(b) # 8
It is also compatible with int and float type conversions.
**Target Audience**
The project is meant for use in production. Although for practical use cases, a lot of functionalities need to be build. So for now, this can be used for small/toy projects or people looking for a way
/r/Python
https://redd.it/1e7dg1h
A new way to calculate in python!
If you have used ReactJS, you might have encountered the famous useState hook and have noticed how it updates the UI every time you update a variable. I looked around and couldn't find something similar for python. And hence, I built this package called **Pyliven**
**What My Project Does**
I have released the first version and as of now, it supports a stateful numeric data-type called LiveNum. It can be used to create dependent expressions which can be updated by just updating dependencies. The functionality is illustrated by a simple code block below:
a = LiveNum(3)
b = 2 * a
print(b) # 6
a.update(4)
print(b) # 8
It is also compatible with int and float type conversions.
**Target Audience**
The project is meant for use in production. Although for practical use cases, a lot of functionalities need to be build. So for now, this can be used for small/toy projects or people looking for a way
/r/Python
https://redd.it/1e7dg1h
Reddit
From the Python community on Reddit: Stateful Objects and Data Types in Python: Pyliven
Explore this post and more from the Python community
Need help with User's API key management in flask app
I am currently working on a Flask App that I want users to use with an API key. I am providing a frontend where users can generate/revoke api keys. I want to know the best way to create a backend system for the api key management. I am aware that keys are not stored in plaintext, they should be hashed or encrypted, I am struggling to find good resources for this, I need to be able to query all of a user's keys to show them in the frontend. Right now this is what I am thinking:
The generate endpoint will take in a user_id, based on this user_id I will generate a jwt token (storing the user_id in the payload), this jwt token itself will serve as the api key. I need this because when validating an api key I do not want to go through all the hashes in the database, I can get the user_id and narrow down the search. I am also planning to encrypt the jwt token and store it in the database so it can be used to query a user's api keys from the frontend (encrypted jwt will be decrypted in the frontend),
/r/flask
https://redd.it/1e7678a
I am currently working on a Flask App that I want users to use with an API key. I am providing a frontend where users can generate/revoke api keys. I want to know the best way to create a backend system for the api key management. I am aware that keys are not stored in plaintext, they should be hashed or encrypted, I am struggling to find good resources for this, I need to be able to query all of a user's keys to show them in the frontend. Right now this is what I am thinking:
The generate endpoint will take in a user_id, based on this user_id I will generate a jwt token (storing the user_id in the payload), this jwt token itself will serve as the api key. I need this because when validating an api key I do not want to go through all the hashes in the database, I can get the user_id and narrow down the search. I am also planning to encrypt the jwt token and store it in the database so it can be used to query a user's api keys from the frontend (encrypted jwt will be decrypted in the frontend),
/r/flask
https://redd.it/1e7678a
Reddit
From the flask community on Reddit
Explore this post and more from the flask community