-
Notifications
You must be signed in to change notification settings - Fork 234
docs: enhance DocVec section #1658
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
Conversation
Signed-off-by: maxwelljin <101249253+maxwelljin@users.noreply.github.com>
Signed-off-by: maxwelljin <101249253+maxwelljin@users.noreply.github.com>
Signed-off-by: maxwelljin <101249253+maxwelljin@users.noreply.github.com>
README.md
Outdated
|
|
||
| app = FastAPI() | ||
|
|
||
| model_img, model_text = SomeEmbeddingModelImage(), SomeEmbeddingModelText() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to have a def embed_image and def embed_text method with random numpy array generation, it is easier to reproduce
| return doc | ||
|
|
||
|
|
||
| async with AsyncClient(app=app, base_url="http://test") as ac: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are u removing this?
Signed-off-by: maxwelljin <101249253+maxwelljin@users.noreply.github.com>
README.md
Outdated
| app = FastAPI() | ||
|
|
||
| model_img, model_text = SomeEmbeddingModelImage(), SomeEmbeddingModelText() | ||
| model_img, model_text = lambda img: np.zeros((100, 1)), lambda text: np.zeros((100, 1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets use a def and not lambda, easier to read
Signed-off-by: maxwelljin <101249253+maxwelljin@users.noreply.github.com>
This PR integrates improvements for the document based on Han's suggestions from our Discord channel: