Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[0.0.6] - 3-21-2024 Bug Fixes #47

Merged
merged 93 commits into from
Mar 21, 2024
Merged

[0.0.6] - 3-21-2024 Bug Fixes #47

merged 93 commits into from
Mar 21, 2024

Conversation

VVoruganti
Copy link
Collaborator

@VVoruganti VVoruganti commented Mar 21, 2024

Added

  • Full docker-compose for API and Database
  • Full docstring coverage
  • Code coverage tests
  • Add LangChain to Honcho message converter in both directions
  • Synonym init function that acts the same as initialize

Fixed

  • API Response schema removed unnecessary fields
  • OTEL logging to properly work with async database engine
  • fly.toml default settings

Changed

  • Refactored API server into multiple route files
  • Harvester renamed to deriver

Copy link

cloudflare-workers-and-pages bot commented Mar 21, 2024

Deploying honcho-python-sdk-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5fdfdbc
Status: ✅  Deploy successful!
Preview URL: https://eeb76915.honcho-python-sdk-docs.pages.dev
Branch Preview URL: https://staging.honcho-python-sdk-docs.pages.dev

View logs

@VVoruganti VVoruganti changed the title 0.0.6 - Release [0.0.6] - 3-21-2024 Bug Fixes Mar 21, 2024
@VVoruganti VVoruganti marked this pull request as ready for review March 21, 2024 17:39
Copy link

Name Stmts Miss Cover
honcho/__init__.py 4 0 100%
honcho/cache.py 16 11 31%
honcho/client.py 468 118 75%
honcho/schemas.py 31 3 90%
honcho/sync_client.py 468 118 75%
tests/test_async.py 360 0 100%
tests/test_sync.py 340 0 100%
TOTAL 1687 250 85%

Docstring Coverage

=========== Coverage for /home/runner/work/honcho/honcho/sdk/honcho/ ===========
----------------------------------- Summary ------------------------------------
| Name                     |      Total |      Miss |      Cover |      Cover% |
|--------------------------|------------|-----------|------------|-------------|
| __init__.py              |          1 |         0 |          1 |        100% |
| cache.py                 |          5 |         0 |          5 |        100% |
| client.py                |         77 |         0 |         77 |        100% |
| schemas.py               |         10 |         0 |         10 |        100% |
| sync_client.py           |         77 |         0 |         77 |        100% |
| ext/__init__.py          |          1 |         0 |          1 |        100% |
| ext/langchain.py         |          5 |         0 |          5 |        100% |
|--------------------------|------------|-----------|------------|-------------|
| TOTAL                    |        176 |         0 |        176 |      100.0% |
--------------- RESULT: PASSED (minimum: 80.0%, actual: 100.0%) ----------------

@VVoruganti VVoruganti merged commit 29cd37b into main Mar 21, 2024
6 checks passed
VVoruganti added a commit that referenced this pull request Mar 25, 2024
* [0.0.6] - 3-21-2024 Bug Fixes (#47)

* 🧪 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]>

* Port Docs

* Update Examples with new langchain utilites

* Rename decorator

* Synchronize

* Fix API SessionLocal

---------

Co-authored-by: hyusap <[email protected]>
Co-authored-by: vintro <[email protected]>
Co-authored-by: vintro <[email protected]>
Copy link

sentry-io bot commented Mar 28, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ OperationalError: (psycopg.OperationalError) consuming input failed: SSL connection has been closed unexpectedly /apps/{app_id}/users/get_or_create/{name} View Issue

Did you find this useful? React with a 👍 or 👎

VVoruganti added a commit that referenced this pull request Apr 1, 2024
* 🧪 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

* Langchain Utilities Refactor (#48)

* [0.0.6] - 3-21-2024 Bug Fixes (#47)

* 🧪 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]>

* Port Docs

* Update Examples with new langchain utilites

* Rename decorator

* Synchronize

* Fix API SessionLocal

---------

Co-authored-by: hyusap <[email protected]>
Co-authored-by: vintro <[email protected]>
Co-authored-by: vintro <[email protected]>

* Basic Auth Header validation

* Basic Auth Service

* Deriver reliability and default auth revoke

* .env.template

* 0.0.7 Updates

---------

Co-authored-by: hyusap <[email protected]>
Co-authored-by: vintro <[email protected]>
Co-authored-by: vintro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants