fromsentimatriximportSentimatrixfromsentimatrix.configimportSentimatrixConfig,LLMConfigconfig=SentimatrixConfig(llm=LLMConfig(provider="fireworks",model="accounts/fireworks/models/llama-v3p1-70b-instruct",api_key="your-fireworks-key"# Or set FIREWORKS_API_KEY))asyncwithSentimatrix(config)assm:summary=awaitsm.summarize_reviews(reviews)
LLMConfig(provider="fireworks",model="accounts/fireworks/models/llama-v3p1-70b-instruct",api_key="your-key",# Or FIREWORKS_API_KEY env vartemperature=0.7,max_tokens=4096,timeout=30,)
asyncwithSentimatrix(config)assm:# Fireworks excels at batch processingreviews=[...]# 1000s of reviewsresults=awaitsm.analyze_batch(reviews,batch_size=100# Large batches supported)