Skip to content

Instantly share code, notes, and snippets.

View egoebelbecker's full-sized avatar

Eric Goebelbecker egoebelbecker

View GitHub Profile
@egoebelbecker
egoebelbecker / milvus_chatbot.ipynb
Last active August 17, 2023 20:08
Milvus Chatbot
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@egoebelbecker
egoebelbecker / zilliz_rest_api.txt
Created July 11, 2023 17:23
Zilliz REST API Examples
# Get a list of collections:
GET https://${PUBLIC_ENDPOINT}/v1/vector/collections HTTP/1.1
content-type: application/json
Authorization: Bearer $YOUR_API_KEY
# Create a collection:
POST https://${PUBLIC_ENDPOINT}/v1/vector/collections/create HTTP/1.1
content-type: application/json
Authorization: Bearer $YOUR_API_KEY
#!/usr/bin/env python
import asyncio
import json
import websockets
subscriptions = {}
async def handler(websocket, path):
async for message in websocket:
data = json.loads(message)
import time
import pigpio
from collections import namedtuple
class RobotDriver:
MOTORLATCH = 21
MOTORCLK = 20
MOTORDATA = 16
PWM_1 = 5