Zach Schillaci
159c560c95
Refactor some loops into list comprehensions ( #1185 )
2023-02-20 16:38:43 -08:00
Shahriar Tajbakhsh
b7747017d7
Import of declarative_base when SQLAlchemy <1.4 ( #883 )
...
In
[pyproject.toml](https://github.com/hwchase17/langchain/blob/master/pyproject.toml ),
the expectation is `SQLAlchemy = "^1"`. But, the way `declarative_base`
is imported in
[cache.py](https://github.com/hwchase17/langchain/blob/master/langchain/cache.py )
will only work with SQLAlchemy >=1.4. This PR makes sure Langchain can
be run in environments with SQLAlchemy <1.4
2023-02-10 18:33:47 -08:00
Amos Ng
fa6826e417
Fix sqlalchemy warnings when running tests ( #733 )
...
This has been bugging me when running my own tests that call langchain
methods :P
2023-01-25 07:14:07 -08:00
Harrison Chase
54d7f1c933
fix caching ( #658 )
2023-01-19 15:33:45 -08:00
Harrison Chase
73f7ebd9d1
Harrison/sqlalchemy cache store ( #536 )
...
Co-authored-by: Jason Gill <jasongill@gmail.com >
2023-01-04 18:38:15 -08:00
Samantha Whitmore
6bc8ae63ef
Add Redis cache implementation ( #397 )
...
I'm using a hash function for the key just to make sure its length
doesn't get out of hand, otherwise the implementation is quite similar.
2022-12-22 12:31:27 -05:00
Harrison Chase
3474f39e21
Harrison/improve cache ( #368 )
...
make it so everything goes through generate, which removes the need for
two types of caches
2022-12-18 16:22:42 -05:00
Benjamin
85c1bd2cd0
add sqlalchemy generic cache ( #361 )
...
Created a generic SQLAlchemyCache class to plug any database supported
by SQAlchemy. (I am using Postgres).
I also based the class SQLiteCache class on this class SQLAlchemyCache.
As a side note, I'm questioning the need for two distinct class
LLMCache, FullLLMCache. Shouldn't we merge both ?
2022-12-16 16:47:23 -08:00
Harrison Chase
78b31e5966
Harrison/cache ( #343 )
2022-12-15 07:53:32 -08:00