Skip to content

Commit

Permalink
removed extractors
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalego committed Dec 15, 2024
1 parent 1de7c42 commit cfd4844
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 31 deletions.
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"wafl.connectors.remote",
"wafl.data_objects",
"wafl.events",
"wafl.extractors",
"wafl.handlers",
"wafl.inference",
"wafl.interface",
Expand Down
6 changes: 3 additions & 3 deletions tests/test_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class TestConnection(TestCase):
def test__connection_to_generative_model_can_generate_text(self):
config = Configuration.load_local_config()
connector = RemoteLLMConnector(config.get_value("llm_model"))
connector = RemoteLLMConnector(config)
prediction = asyncio.run(
connector.predict(
PromptCreator.create_from_one_instruction(
Expand All @@ -25,7 +25,7 @@ def test__connection_to_generative_model_can_generate_text(self):

def test__connection_to_generative_model_can_generate_text_within_tags(self):
config = Configuration.load_local_config()
connector = RemoteLLMConnector(config.get_value("llm_model"))
connector = RemoteLLMConnector(config)
connector._num_prediction_tokens = 200
text = 'Generate a full paragraph based on this chapter title " The First Contact". The theme of the paragraph is space opera. Include the characters "Alberto" and "Maria". Write at least three sentences.'
prompt = f"""
Expand All @@ -43,7 +43,7 @@ def test__connection_to_generative_model_can_generate_text_within_tags(self):

def test__connection_to_generative_model_can_generate_a_python_list(self):
config = Configuration.load_local_config()
connector = RemoteLLMConnector(config.get_value("llm_model"))
connector = RemoteLLMConnector(config)
connector._num_prediction_tokens = 200
prompt = "Generate a Python list of 4 chapters names for a space opera book. The output needs to be a python list of strings: "
prediction = asyncio.run(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_entailer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class TestConnection(TestCase):
def test__entailer_connector(self):
config = Configuration.load_local_config()
connector = RemoteEntailerConnector(config.get_value("entailer_model"))
connector = RemoteEntailerConnector(config)
prediction = asyncio.run(
connector.predict(
"The first contact is a romance novel set in the middle ages.",
Expand Down
1 change: 0 additions & 1 deletion wafl/extractors/__init__.py

This file was deleted.

23 changes: 0 additions & 23 deletions wafl/extractors/utils.py

This file was deleted.

4 changes: 2 additions & 2 deletions wafl/variables.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
def get_variables():
return {
"version": "0.1.2",
"version": "0.1.3",
}


def is_supported(wafl_llm_version):
supported_versions = ["0.1.0"]
supported_versions = ["0.1.1"]
return wafl_llm_version in supported_versions

0 comments on commit cfd4844

Please sign in to comment.