Skip to content

Commit

Permalink
add todo and rename files
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinHsu1019 committed Nov 10, 2024
1 parent 1eb9275 commit e24908b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 5 additions & 2 deletions src/flask_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
from flask_limiter.util import get_remote_address
from flask_restx import Api, Resource, fields

# from utils.weaviate_op import search_do
from utils.weaviatexreranker import search_do
from utils.retrieval_agent import search_do
from werkzeug.security import check_password_hash, generate_password_hash

config, logger, CONFIG_PATH = config_log.setup_config_and_logging()
Expand Down Expand Up @@ -61,6 +60,7 @@ def get(self):
return response


# TODO: Modify the output format for general RAG purposes
@ns.route('/chat')
class ChatBot(Resource):
@api.doc('chat_bot')
Expand All @@ -70,8 +70,11 @@ def post(self):
source = request.json.get('source')
question = request.json.get('query')
category = request.json.get('category')

# for alpha testing
# alpha = request.json.get('alpha')

# input template
# {
# "qid": 1,
# "source": [442, 115, 440, 196, 431, 392, 14, 51],
Expand Down
File renamed without changes.

0 comments on commit e24908b

Please sign in to comment.