Closed eero-t closed 3 weeks ago
This is somewhat related to #265.
@eero-t Thanks for reporting this. Currently the new examples are enabled gradually and keep added to new releases, each of the examples might be based on different base library versions during developing and evolving due to different time frame. The Docker images are separate for all use cases. And we try to make sure each of the examples works.
@kevinintel Do we have plans to align all the versions of the common dependencies for all examples, such as langchain
, langchain-community
and pydantic
?
@kevinintel Could you please comment on this issue? Thanks. The OP has some concerns that each example or each microservices components inside the example uses different versions of base library such as langchain, further putting obstacles into creating a common based docker images for those components to reduce the image size.
@eero-t Thanks for reporting this. Currently the new examples are enabled gradually and keep added to new releases, each of the examples might be based on different base library versions during developing and evolving due to different time frame. The Docker images are separate for all use cases. And we try to make sure each of the examples works.
@kevinintel Do we have plans to align all the versions of the common dependencies for all examples, such as
langchain
,langchain-community
andpydantic
?
if this is a community project, version would be different
if this is a community project, version would be different
@kevinintel What do you mean?
Current Dockerfiles are awful. They should look something like this:
FROM opea/components-base
COPY some.py /home/user/
ENTRYPOINT ["python", "some.py"]
Which results in KB sized container (on top of the shared base image), but instead they are monsters each taking nearly GB of network bandwidth, disk space etc.
Making sure that same versions of dependencies work, is one step in fixing that i.e. getting to common base image(s).
@feng-intel Why did you close this?
@eero-t No reply for a long time about the before answer.
(This is continuation / expansion of #112 which was closed without any explanation.)
Looking at the latest
main
branch code...For some components, there are different dependency versions listed in
requirements.txt
files:Both for
langchain
andlangchain_community
:And
pydantic
:Is this intentional, or just a bug?