This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
flowchart TD | |
title File Parser API Workflow | |
A[User Input Prompt] --> B{Has Document Upload?} | |
B -->|Yes| C[Call File Parser API] | |
B -->|No| D{Need KB Data?} | |
D -->|Yes| E[Call Azure AI Search API] | |
D -->|No| G | |
C --> |Normalized data| D | |
E --> |Chunks| G[LLM] | |
G --> H[Output Response] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# coding: utf-8 | |
import os | |
from sanic import Sanic, json as json_response, raw | |
from sanic.request import Request | |
import httpx | |
client = httpx.AsyncClient( | |
http2=True, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Collect cookies information | |
const cookies = document.cookie.split(';').map(cookie => { | |
const [name, value] = cookie.trim().split('='); | |
return { | |
name, | |
value, | |
domain: document.domain, | |
path: '/', | |
expires: -1, | |
httpOnly: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"retType": 0, | |
"s2c": { | |
"security": { | |
"market": 1, | |
"code": "00700" | |
}, | |
"brokerAskList": [{ | |
"id": "5342", | |
"name": "J.P.摩根", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"retType": 0, | |
"s2c": { | |
"security": { | |
"market": 1, | |
"code": "00700" | |
}, | |
"orderBookAskList": [{ | |
"price": 303, | |
"volume": "35800", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:latest | |
COPY nginx_conf/default.conf /etc/nginx/conf.d/default.conf | |
# Copy assets to the html directory | |
COPY build /usr/share/nginx/html | |
EXPOSE 80 | |
CMD ["nginx", "-g", "daemon off;"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let jay = { | |
"AF": "Afghanistan", | |
"AX": "Åland Islands", | |
"AL": "Albania", | |
"DZ": "Algeria", | |
"AS": "American Samoa", | |
"AD": "Andorra", | |
"AO": "Angola", | |
"AI": "Anguilla", | |
"AQ": "Antarctica", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var files = ["https://fonts.gstatic.com/s/bangers/v11/FeVQS0BTqb0h60ACH5FQ2J5hm25mww.woff2", | |
"https://fonts.gstatic.com/s/bangers/v11/FeVQS0BTqb0h60ACH5BQ2J5hm25mww.woff2", | |
"https://fonts.gstatic.com/s/bangers/v11/FeVQS0BTqb0h60ACH55Q2J5hm24.woff2", | |
"https://fonts.gstatic.com/s/comingsoon/v9/qWcuB6mzpYL7AJ2VfdQR1t-VWDnRsDkg.woff2", | |
"https://fonts.gstatic.com/s/craftygirls/v8/va9B4kXI39VaDdlPJo8N_NveRhf6Xl7Glw.woff2", | |
"https://fonts.gstatic.com/s/deliusswashcaps/v10/oY1E8fPLr7v4JWCExZpWebxVKORpXUeaIGajv1Yt.woff2", | |
"https://fonts.gstatic.com/s/didactgothic/v12/ahcfv8qz1zt6hCC5G4F_P4ASlUaYpmDmYyVwrA.woff2", | |
"https://fonts.gstatic.com/s/didactgothic/v12/ahcfv8qz1zt6hCC5G4F_P4ASlU-YpmDmYyVwrA.woff2", | |
"https://fonts.gstatic.com/s/didactgothic/v12/ahcfv8qz1zt6hCC5G4F_P4ASlUeYpmDmYyVwrA.woff2", | |
"https://fonts.gstatic.com/s/didactgothic/v12/ahcfv8qz1zt6hCC5G4F_P4ASlUiYpmDmYyVwrA.woff2", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:void(window.open("","dp_debugger","width=600,height=600,location=0,menubar=0,status=1,toolbar=0,resizable=1,scrollbars=1").document.write("<script language='JavaScript' id=dbg src='https://www.adobetag.com/d1/digitalpulsedebugger/live/DPD.js'></"+"script>")); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"customer": { | |
"FirstName": "美辰", | |
"LastName": "陈", | |
"Email": "[email protected]", | |
"HomePhone": "", | |
"MobilePhone": "18602478900", | |
"DateOfBirth": "2004-02-26T00:00:00Z", | |
"AddressLine1": "", | |
"AddressLine2": "", |
NewerOlder