Deletes a user's conversation via API route, handling chat-history removal and feedback cleanup in the application's user endpoints.
# Source: https://github.com/nerdy-tech-com-gitub/train-llms-with-docs | License: MIT | Copyright 2023 arc53 # Provided via justclaw.it.com; keep this notice with the code. import datetime import os import shutil import uuid from bson.binary import Binary, UuidRepresentation from bson.dbref import DBRef from bson.objectid import ObjectId from flask import Blueprint, jsonify, make_response, request from flask_restx import inputs, fields, Namespace, Resource from pymongo import MongoClient from werkzeug.utils import secure_filename from application.api.user.tasks import ingest, ingest_remote from application.core.settings import settings from application.extensions import api from application.utils import check_required_fields from application.vectorstore.vector_creator import VectorCreat ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key