Create csv files for vector database
def file2docs( file_path: str ) -> list[WikiDict]: result: list[WikiDict] = [] with open(file_path, encoding="utf-8") as f: for line in f:…
def file2docs( file_path: str ) -> list[WikiDict]: result: list[WikiDict] = [] with open(file_path, encoding="utf-8") as f: for line in f:…
const log4js = require('log4js') const { Router } = require('express') const router = Router() const myfunc_set = async (req, res)…
Quantum Computing State space Unitary Matrix and Operator Hermite Matrix and Operator Some Rules of Dirac Form (Norm of a…
try: # The code that exceptions can be caused # ... except Exception1 as e: # Exception1 # ... except…
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import numpy as np fig = plt.figure() ax1 = fig.add_subplot(1, 1, 1) p0…
import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig = plt.figure() ax1 = fig.add_subplot(1, 1, 1) ax1.plot(range(20)) ax1.grid() fig.savefig('aaa.png')
About If you don’t have SSL certificate, downloading files sometimes get failed. And the error like ssl.SSLError happens. Here shows…
ffmpeg -i input.mp3 -ss 00:00:00 -t 00:04:00 -acodec copy output.mp3
@app.websocket("/ws") async def websocket_endpoint(ws: WebSocket): await ws.accept() key = ws.headers.get('sec-websocket-key')
Saving memory Specifying slots causes the instance’s attribute values to be stored in the form of an array of slots…