fix: absolute path for passages

This commit is contained in:
Andy Lee committed 2025-07-25 11:59:30 -07:00
1 parent 5eb893c62b
commit 2a4df11f5c
1 file changed
+3 -1
@@ -269,7 +269,9 @@ class EmbeddingServerManager:
] ]
if kwargs.get("passages_file"): if kwargs.get("passages_file"):
command.extend(["--passages-file", str(kwargs["passages_file"])]) # Convert to absolute path to ensure subprocess can find the file
passages_file = Path(kwargs["passages_file"]).resolve()
command.extend(["--passages-file", str(passages_file)])
if embedding_mode != "sentence-transformers": if embedding_mode != "sentence-transformers":
command.extend(["--embedding-mode", embedding_mode]) command.extend(["--embedding-mode", embedding_mode])
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.