Skip to content

Commit

Permalink
try v3
Browse files Browse the repository at this point in the history
  • Loading branch information
NavinKumarMNK committed Apr 14, 2024
1 parent 9f57bca commit 9c41a7f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/front-end-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: React.js Build and Release
on:
push:
tags:
- 'v*'
- 'app-v*'

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ml-service-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create Release
on:
push:
tags:
- 'v*'
- 'ml-v*'

jobs:
build:
Expand Down
1 change: 0 additions & 1 deletion ml_service/emb_serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ async def generate_embedding(self, request: Request) -> JSONResponse:
elif req_type == "PLAIN_EMBED":
embedding: List[np.ndarray] = list(self.model.embed(data.get("data")))

print(embedding)
embedding = [x.tolist() for x in embedding]

return JSONResponse(content={"embedding": embedding})
Expand Down
2 changes: 1 addition & 1 deletion ml_service/test/emb_client.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import requests
import numpy as np

EMBEDDING_URL = "http://172.16.0.57:9999/api/v1/embedder/embed" # Adjust if your deployment is on a different port
EMBEDDING_URL = "http://172.16.0.57:5000/api/v1/embedder/embed" # Adjust if your deployment is on a different port

# Test data
test_cases = [
Expand Down
2 changes: 1 addition & 1 deletion ml_service/test/llm_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def generate_text(endpoint_url: str, payload: Dict) -> List[str]:

@click.command()
@click.option("--host", default="localhost", help="Host")
@click.option("--port", default=9999, help="Port")
@click.option("--port", default=5000, help="Port")
@click.option("--stream", default=True, help="Stream")
@click.option("--max-tokens", default=4096, help="Max tokens")
@click.option("--temperature", default=0.3, help="Temperature")
Expand Down

0 comments on commit 9c41a7f

Please sign in to comment.