Brain Staion R & D

Results 1 comments of Brain Staion R & D

@app.post("/get_gk_query") async def get_query(input_data: QueryInput): question = input_data.question session_id = input_data.session_id if not question: raise HTTPException(status_code=status.HTTP_400_BAD_REQUEST, detail="Invalid input. Please provide a question.") try: # Load Chroma database embedding_function = OpenAIEmbeddings()...