Find answers from the community

Home
Members
skydel0
s
skydel0
Offline, last seen 3 months ago
Joined September 25, 2024
Hello guys I have a big question again xD I load the base model and after that, i always generate a new index with the documents when the user asks for something. Does it work how I think and it's always a reset of the model and index? It seems to confuse itself as longer as the conversation goes on so im not sure xD I save the chatlogs inside the document folder so the bot knows what was already asked from this user πŸ˜„
9 comments
L
s
Some one knows what im doing wrong here?:
Plain Text
prefix = """You are an AI who chats with another person here are the Instructions: {instruction}"""
suffix = """Question:"""
prompt = ZeroShotAgent.create_prompt(
        tools,
    prefix=prefix,
    suffix=suffix,
    input_variables=["instruction"],
    )
 llm_chain = LLMChain(llm=llmPipeline, prompt=prompt)
 agent = ZeroShotAgent(llm_chain=llm_chain, tools=tools, verbose=True)
 agent_chain = AgentExecutor.from_agent_and_tools(agent=agent, tools=tools, verbose=True, memory=memory)
 response = agent_chain.run(input=question) 
75 comments
s
L
s
skydel0
Β·

Error

hei guys I have a problem. My code just stop working today. I try to fix it by making it as simple as possible and going back to other version of the packages. But it still always crashes: code https://gist.github.com/devinSpitz/e7aabdf1036f81745543739d0d5a59b9 error: https://gist.github.com/devinSpitz/3e83f8ab3d3d49a2875d31c1263d0d9a I use that in a docker and after the restart today everything stop working (normaly restarts where no problem until today xD).
25 comments
s
L
C
V
B
s
skydel0
Β·

Use cpu

i saw that HuggingFaceEmbeddings will use the SentenceTransformer and there you can set: "model = SentenceTransformer('model_name_or_path', device='cpu')" but its not default behavior xD (Source: https://www.sbert.net/examples/applications/computing-embeddings/README.html)
11 comments
g
L
s