Comments (2)
Hey @Cutwell ! This isn't currently-supported behavior. If you want to switch out the path, there are a few more things to note!
All packages are installed as editable "path" dependencies, so you'll have to re-install the new package (you may want to remove the old one before renaming too).
The from x import chain
x
is going to be the inner folder within the package (same as all python packages), so you'll need to make sure your x
is equal the python path within the inner folder.
app/
packages/
rag/
pyproject.toml
**x/**
__init__.py
chain.py
The other option you have is to langchain app add rag-conversation --api-path=rag
to "add" the package at a custom path.
Let me know how else I can help!
from langserve.
Hi @efriis , thanks for your response.
I think we can achieve the desired result with existing functionality and some manual steps..
- Copy the package component to elsewhere in my repository
- Remove the langserve component with
langchain app remove my-app
- Rename the copied component appropriately
- Re-add the component from a local sourcepath (
langchain app add ...
?) - Tidy up the copied component and resume development with the newly created / renamed package component
This works up until step 4 - I can create a new LangServe app using a local component as a package using langchain app new my-langserve --package $PWD/my-app
, but it's unclear how to do this with an existing langserve project.
from langserve.
Related Issues (20)
- Pass authentication token to RemoteRunnable HOT 2
- Grouping Traces into Threads using "Chat" Interface with LangServe
- LangServe JS client - forward Http-Only cookies when calling stream HOT 1
- Scaling to production -> OSError: [Errno 24] Too many open files socket.accept() out of system resource HOT 1
- Memory leak in LangServe HOT 39
- Langserve Playground does not put out any text response when in chat mode (but it does when in default mode) HOT 2
- Langserve :there is a conflict between langchain-cli and fastapi-cli on the version of typer.
- Bug: TypeError: Type is not JSON serializable: Send HOT 4
- No run_id found for the given run. HOT 1
- Support for stream_events v2 HOT 4
- RuntimeError calling add_routes with chains that have input types in Pydantic v2 HOT 2
- I have the same issue,The problem seems due to the ContextualCompressionRetriever,It outputs some info cannot be serialized. HOT 1
- langchain serve using different folder HOT 1
- Questions about LangServe hosting license HOT 1
- trying to set up a LangServe application with RunnableWithMessageHistory and a chat playground HOT 4
- RunnableWithMessageHistory and DynamoDBChatMessageHistory
- "correction" field isn't passed from the "token_feedback" endpoint to the Langsmith "/feedback/tokens/" API
- How to use langgserve with django apis? HOT 2
- Failed to run langserve/examples/chat_with_persistence HOT 1
- TypeError when using add_routes() with a RunnableWithMessageHistory wrapper HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langserve.