-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic docs with tutorial #96
Merged
Changes from 11 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c0d247c
Basic docs with tutorial
fjsj bc61cdf
Fix OPENAI_API_KEY comment on tests/settings.py
fjsj b3a1a7c
Update Django badge
fjsj 05a07bf
Fix plurals
fjsj baf72cf
Fix typos
fjsj 1d25cb0
Fix Vinta URL
fjsj 7326141
Fix tense
fjsj dec1db9
Fix plural
fjsj dc9df3b
Simplify text
fjsj ae68e3d
Improve ideas
fjsj a3df8f6
Apply suggestions from code review
fjsj 9d9d544
Merge branch 'main' into feat/docs
fjsj File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ indent_size = 2 | |
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
indent_size = 4 | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Get started | ||
|
||
## Prerequisites | ||
|
||
- Python: <a href="https://pypi.org/project/django-ai-assistant" target="_blank"><img src="https://img.shields.io/pypi/pyversions/django-ai-assistant.svg?color=%2334D058" alt="Supported Python versions"></a> | ||
- Django: <a href="https://pypi.org/project/django-ai-assistant" target="_blank"><img src="https://img.shields.io/pypi/frameworkversions/django/django-ai-assistant.svg" alt="Supported Django versions"></a> | ||
|
||
## How to install | ||
|
||
Install Django AI Assistant package: | ||
|
||
```bash | ||
pip install django-ai-assistant | ||
``` | ||
|
||
Add Django AI Assistant to your Django project's `INSTALLED_APPS`: | ||
|
||
```python title="myproject/settings.py" | ||
INSTALLED_APPS = [ | ||
... | ||
'django_ai_assistant', | ||
... | ||
] | ||
``` | ||
|
||
Run the migrations: | ||
|
||
```bash | ||
python manage.py migrate | ||
``` | ||
|
||
Learn how to use the package in the [Tutorial](tutorial.md) section. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Django AI Assistant | ||
|
||
Implement powerful AI Assistants using Django. | ||
Combine the power of Large Language Models with Django's productivity. | ||
|
||
Regardless of the feasibility of AGI, AI assistants are (already!) a new paradigm for computation. | ||
AI agents and assistants allow devs to easily build applications with smart decision logic | ||
that would otherwise be too expensive to build and maintain. | ||
|
||
The latest LLMs from major AI providers have a "killer feature" called Tool Calling, | ||
which enables AI models to call provided methods from Django's side, and essentially | ||
do anything a Django view can, such as accessing DBs, checking permissions, sending emails, | ||
downloading and uploading media files, etc. | ||
|
||
While users commonly interact with LLMs via conversations, AI Assistants can do a lot with any kind of string input, including JSON. | ||
Your application's end users won't even realize that a LLM is doing the heavy-lifting behind the scenes! | ||
Some ideas for innovative AI assistants: | ||
|
||
- A movie recommender chatbot that helps users manage their movie backlogs | ||
- An autofill button for certain forms of your application | ||
- Personalized email reminders that consider users' written preferences and the application's recent notifications | ||
- A real-time audio guide for tourists that recommends attractions given the user's current location | ||
|
||
We have an open-source example with some of those applications, but it's best to start with the [Get Started](get-started.md) guide. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This permission was on examples, but not being used. Added now.