-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing an issue with sentenc construction
- Loading branch information
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from typing import Optional | ||
|
||
def construct_llm_input( | ||
prompt: str, | ||
pre_context: Optional[str], | ||
post_context: Optional[str], | ||
delimiter: str = " ", | ||
) -> str: | ||
if pre_context is not None: | ||
full_prompt = pre_context + delimiter + prompt | ||
else: | ||
full_prompt = prompt | ||
if post_context is not None: | ||
full_prompt += delimiter + post_context | ||
return full_prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" | |
|
||
[project] | ||
name = "fiddler-auditor" | ||
version = "0.0.3" | ||
version = "0.0.4.rc0" | ||
authors = [ | ||
{ name="Fiddler Labs", email="[email protected]" }, | ||
] | ||
|