Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #214 from DrAlzahraniProjects/infra-update
Browse files Browse the repository at this point in the history
updated the infrastructure of the codebase
  • Loading branch information
ACraig7 authored Nov 26, 2024
2 parents 3a1179d + 93ba38b commit 7df8ab3
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ This section highlights the sets of questions the chatbot can and cannot answer.
| How can I connect to the campus Wi-Fi? | What is a smart contract? |
| What are the available free software for a student? | Can you write code for a basic Python script? |
| Where are all the printers located? | What is the CGI phone number/email? |
| What are the CoyoteLabs virtual computer lab? | What class does Dr. Alzahrani teach? |
| What are the CoyoteLabs virtual computer labs? | What class does Dr. Alzahrani teach? |
| Is Adobe Creative Cloud available as student software? | Who is Hironori Washizaki? |
| What is information security awareness? | How can I make a payment for the tuition fee? |
| How do I enable multi-factor authorization? | What is the future impact of AI on software quality standards? |
| How do I enable multi-factor authentication? | What is the future impact of AI on software quality standards? |
| What are Coyote OneCard benefits? | What is regression testing? |
| What if i lost my campus laptop charger? | How much does parking cost for one semester? |

Expand Down
10 changes: 5 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# import time
import os
import subprocess
from RAG import initialize_milvus, query_rag
from backend.RAG import initialize_milvus, query_rag
from collections import defaultdict
import pandas as pd
from chatbot_statistics import DatabaseClient # Import the DatabaseClient class
from ddos_protection import handle_rate_limiting # Importing the rate-limiting function
from metrics.chatbot_statistics import DatabaseClient # Import the DatabaseClient class
from backend.ddos_protection import handle_rate_limiting # Importing the rate-limiting function


def initialize_vector_store():
Expand Down Expand Up @@ -63,7 +63,7 @@ def __init__(self, session_state=st.session_state):
# Answerable and Unanswerable questions
self.answerable_questions = {
"How can I contact ITS?",
"How can I connect to the campus WiFi?",
"How can I connect to the campus Wi-Fi?",
"What are the available free software for a student?",
"Where are all the printers located?",
"What are the CoyoteLabs virtual computer labs?",
Expand All @@ -78,7 +78,7 @@ def __init__(self, session_state=st.session_state):
"What are the campus gym timings?",
"What is a smart contract?",
"Can you write code for a basic Python script?",
"What is the CGI phone number or email?",
"What is the CGI phone number/email?",
"What class does Dr. Alzahrani teach?",
"Who is Hironori Washizaki?",
"How can I make a payment for the tuition fee?",
Expand Down
2 changes: 1 addition & 1 deletion RAG.py → backend/RAG.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from langchain_text_splitters import RecursiveCharacterTextSplitter
from pymilvus import connections, utility, Collection, CollectionSchema, FieldSchema, DataType
from httpx import HTTPStatusError
from retriever import ScoreThresholdRetriever
from backend.retriever import ScoreThresholdRetriever


load_dotenv()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified milvus/milvus_vector.db
Binary file not shown.

0 comments on commit 7df8ab3

Please sign in to comment.