-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🧪 asyncify tests * ✨ asyncify client * Basic Test for Page based pagination * add sync buildstep and client * add vscode DX * Added Testing for generators and updated examples * feat: example updates * readme exists now * Stylistic changes and generic message * Metamessages with other refactoring - untested * Work with unit tests * Fix Examples * MEME-78 Update Changelogs * Docstrings to client * 🧪 autogenerate sync tests * test one * add db type * sync client * add status badge * add coverage * add file * give perms * properly output coverage * split test and coverage * rename action * 🧪 autogenerate sync tests (#16) * Vector Support (#18) * Scaffold for PGVector support * Buggy crud with logic skeleton on api * Crud logic and schema definition for pgvector * Populate all routes and refactor to name Collection * vince's progress * AsyncCollection progress * Local PGVector Docker Container * client methods for sdk except document delete and update * Vector Support Passing All Test Cases * Docs Updates --------- Co-authored-by: vintro <[email protected]> * Add reverse parameters for paginated routes * Address dependabot * Formatting * initial commit on honcho dspy personas * working, hit token limit and can't test dspy optimization * initial version working, need to test optimization * optimizers working, but appending any example * ready for user object (tbomk) * Revert "add test actions and coverage" * Refactor to add User and App Tables * User Object passing test cases * Update examples * DSPy Todo and documentation updates * Add is_active filtering * Add is_active filtering to the generator * Fix update user metadata * working, but weird compiler error * fixed str error in optimizer * ship * sentry * Open Telemetry * optional logging with environment variables * add actions again? (#29) * add postgres * add openai key * readd coverage * desyncify and add detailed coverage * ⚙️ chore: update start script in VS Code to include poetry install --no-root before running uvicorn (#33) * Refactored code but need to tweak asyncpg * Working Async API using Psycopg3 * Update Workflow Connection URI * Update Workflow Connection URI in coverage test as well * Skeleton for Dialectic API * Fixes DEV-217 URL Encoding * Add Built-in Langchain Utility function * Sphinx Docs MVP * Metadata filtering for all fixes dev-261 * Basic Dialectic Endpoint fixes dev-253 * Working Fact Deriver * 0.0.5 Docs and README updates * Cloudflare Sphinx * update example to use right function (#36) * 🚀 feat: add support for running API using docker-compose with configurable environment variables and update docker-compose.yml for API and database services. (#34) Co-authored-by: Vineeth Voruganti <[email protected]> * add interrogate * routerify everything * full docstring coverage * remove unused imports and fix env issue * Update docker-compose connection uri and remove auto-stop to deriver process * Docstrings and langchain message converter in reverse * Sentry, OTEL, langchain both directions, fly.toml for deriver * Rename to deriver * Fix favicon and remove metadata from schema * 0.0.6 Notes * Changelog edit * Route bug fix * Route bug fix again --------- Co-authored-by: hyusap <[email protected]> Co-authored-by: vintro <[email protected]> Co-authored-by: vintro <[email protected]>
- Loading branch information
1 parent
663d065
commit 29cd37b
Showing
39 changed files
with
2,352 additions
and
1,595 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
api/**/*.db | ||
|
||
api/data | ||
api/docker-compose.yml | ||
|
||
|
||
# Byte-compiled / optimized / DLL files | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
version: "3.8" | ||
services: | ||
api: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- 8000:8000 | ||
volumes: | ||
- .:/app | ||
environment: | ||
- DATABASE_TYPE=postgres | ||
- CONNECTION_URI=postgresql+psycopg://testuser:testpwd@database:5432/honcho | ||
- OPENAI_API_KEY=[YOUR_OPENAI_API_KEY] | ||
- OPENTELEMETRY_ENABLED=false | ||
- SENTRY_ENABLED=false | ||
- SENTRY_DSN= | ||
- OTEL_SERVICE_NAME=honcho | ||
- OTEL_PYTHON_LOGGING_AUTO_INSTRUMENTATION_ENABLED=true | ||
- OTEL_PYTHON_LOG_CORRELATION=true | ||
- OTEL_PYTHON_LOG_LEVEL= | ||
- OTEL_EXPORTER_OTLP_PROTOCOL= | ||
- OTEL_EXPORTER_OTLP_ENDPOINT= | ||
- OTEL_EXPORTER_OTLP_HEADERS= | ||
- OTEL_RESOURCE_ATTRIBUTES= | ||
- DEBUG_LOG_OTEL_TO_PROVIDER=false | ||
- DEBUG_LOG_OTEL_TO_CONSOLE=true | ||
database: | ||
image: ankane/pgvector | ||
restart: always | ||
ports: | ||
- 5432:5432 | ||
environment: | ||
- POSTGRES_DB=honcho | ||
- POSTGRES_USER=testuser | ||
- POSTGRES_PASSWORD=testpwd | ||
- POSTGRES_HOST_AUTH_METHOD=trust | ||
- PGDATA=/var/lib/postgresql/data/pgdata | ||
volumes: | ||
- ./local/init.sql:/docker-entrypoint-initdb.d/init.sql | ||
- ./data:/var/lib/postgresql/data/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "honcho" | ||
version = "0.0.5" | ||
version = "0.0.6" | ||
description = "Honcho Server" | ||
authors = ["Plastic Labs <[email protected]>"] | ||
readme = "README.md" | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from fastapi import Depends | ||
from .db import SessionLocal | ||
from sqlalchemy.ext.asyncio import AsyncSession | ||
|
||
|
||
async def get_db(): | ||
"""FastAPI Dependency Generator for Database""" | ||
db: AsyncSession = SessionLocal() | ||
try: | ||
yield db | ||
finally: | ||
await db.close() | ||
|
||
|
||
db: AsyncSession = Depends(get_db) |
Oops, something went wrong.