A Python package for analyzing and verifying if textual statements correctly express prophetic or visionary statements in the perfect tense.
pip install prophecyperfectThe prophecyperfect package takes a brief textual description, prompt, or statement from the user and analyzes it to determine if it correctly expresses a prophetic or visionary statement in the perfect tense. Using pattern matching and structured responses, it classifies the input as prophetic, reaffirming its status, or identifies inaccuracies or non-prophetic phrasing.
from prophecyperfect import prophecyperfect
# Analyze a prophetic statement
user_input = "Thus saith the Lord: I will surely bless you, and I will multiply you exceedingly."
response = prophecyperfect(user_input)
print(response)You can also use your own LLM instance from LangChain. Here are examples with different providers:
from langchain_openai import ChatOpenAI
from prophecyperfect import prophecyperfect
llm = ChatOpenAI()
response = prophecyperfect(user_input, llm=llm)from langchain_anthropic import ChatAnthropic
from prophecyperfect import prophecyperfect
llm = ChatAnthropic()
response = prophecyperfect(user_input, llm=llm)from langchain_google_genai import ChatGoogleGenerativeAI
from prophecyperfect import prophecyperfect
llm = ChatGoogleGenerativeAI()
response = prophecyperfect(user_input, llm=llm)The default rate limits for LLM7 free tier are sufficient for most use cases. If you need higher rate limits, you can:
- Set the API key as an environment variable:
export LLM7_API_KEY="your_api_key_here"- Or pass it directly to the function:
response = prophecyperfect(user_input, api_key="your_api_key_here")You can obtain a free API key by registering at https://token.llm7.io/
user_input(str): The user input text to processllm(Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the default ChatLLM7 will be used.api_key(Optional[str]): The API key for LLM7. If not provided, it will use the environment variableLLM7_API_KEYor the default free tier.
- Eugene Evstafev - hi@euegne.plus
- GitHub Nickname: chigwell
For any issues or to contribute, please visit the GitHub repository: https://github.com/chigwell/prophecyperfect