Don't cache results

This commit is contained in:
2025-12-27 20:20:40 -08:00
parent fc9560cc50
commit b526e68660
3 changed files with 6 additions and 6 deletions

View File

@@ -7,7 +7,7 @@ load_dotenv()
class CypherFromQuestion(dspy.Signature):
"""Task: Generate Cypher statement to query a graph database.
"""Task: Generate a Cypher statement to query a graph database.
Instructions: Use only the provided relationship types and properties in the schema.
Do not use any other relationship types or properties that are not provided in the schema.
Do not include any explanations or apologies in your responses.
@@ -27,7 +27,7 @@ class CypherFromQuestion(dspy.Signature):
class GenerateCypherConfig(PrecompiledConfig):
model: str = "openrouter/openai/gpt-4o" # OPENROUTER ONLY
max_tokens: int = 1024
cache: bool = False
cache: bool = True
class GenerateCypher(PrecompiledProgram):
@@ -71,6 +71,6 @@ if __name__ == "__main__":
generate_cypher.push_to_hub(
"farouk1/text-to-cypher",
with_code=True,
tag="v1.0.1",
tag="v1.0.2",
commit_message="Don't cache results",
)