-
Notifications
You must be signed in to change notification settings - Fork 16
feat: upgraded rag model from ollama to chatgpt #256
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,89 +1,66 @@ | ||||||||
| # RAG Example | ||||||||
| # Intramind | ||||||||
|
||||||||
| # Intramind | |
| # Chatbot with RAG |
using a general name would be better.
Outdated
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.
| git clone https://github.com/cindywxw1/Intramind.git | |
| git clone https://github.com/pingcap/pytidb.git | |
| cd examples/chatbot_with_rag |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| OPENAI_API_KEY = "sk-xxxxxx" | ||
|
|
||
| TIDB_HOST=xxxxxx | ||
| TIDB_PORT=xxxxxx | ||
| TIDB_USERNAME=xxxxxx | ||
| TIDB_PASSWORD=xxxxxx | ||
| TIDB_DATABASE=test |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| streamlit | ||
| openai | ||
| pytidb | ||
|
|
||
| python-dotenv | ||
| streamlit-authenticator | ||
|
|
||
| sqlalchemy | ||
| litellm | ||
| PyPDF2 | ||
| langchain_text_splitters |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import streamlit as st | ||
|
|
||
| doc_page = st.Page("page_files/doc_page.py", title = "Manage Uploaded Files") | ||
| main_page = st.Page("page_files/main_page.py", title = "Chats") | ||
| login_page = st.Page("page_files/login_page.py") | ||
|
|
||
|
|
||
| def main(): | ||
| if not st.user.is_logged_in: | ||
| pg = st.navigation([login_page]) | ||
| else: | ||
| pg = st.navigation([main_page, doc_page]) | ||
| pg.run() | ||
|
|
||
| if __name__ == "__main__": | ||
| main() | ||
|
|
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.
Avoid commit
.DS_Storeto git repo