mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-09-17 23:01:32 +00:00
Compare commits
6 Commits
feat/syste
...
ab67e3e76b
Author | SHA1 | Date | |
---|---|---|---|
|
ab67e3e76b | ||
|
09661ae11d | ||
|
a8d410bc2f | ||
|
590a52d38c | ||
|
ca3fad6632 | ||
|
e0d5787c5d |
@@ -26,9 +26,21 @@ services:
|
||||
- ./config.toml:/home/perplexica/config.toml
|
||||
restart: unless-stopped
|
||||
|
||||
redict:
|
||||
image: registry.redict.io/redict:latest
|
||||
container_name: perplexica-redict
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- redict_data:/data
|
||||
networks:
|
||||
- perplexica-network
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
perplexica-network:
|
||||
|
||||
volumes:
|
||||
backend-dbstore:
|
||||
uploads:
|
||||
redict_data:
|
@@ -12,6 +12,11 @@ search:
|
||||
server:
|
||||
secret_key: 'a2fb23f1b02e6ee83875b09826990de0f6bd908b6638e8c10277d415f6ab852b' # Is overwritten by ${SEARXNG_SECRET}
|
||||
|
||||
redis:
|
||||
url: redis://redict:6379/0
|
||||
|
||||
engines:
|
||||
- name: wolframalpha
|
||||
disabled: false
|
||||
- name: qwant
|
||||
disabled: true
|
||||
|
@@ -125,7 +125,7 @@ export const POST = async (req: Request) => {
|
||||
embeddings,
|
||||
body.optimizationMode,
|
||||
[],
|
||||
"",
|
||||
'',
|
||||
);
|
||||
|
||||
if (!body.stream) {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
export const webSearchRetrieverPrompt = `
|
||||
You are an AI question rephraser. You will be given a conversation and a follow-up question, you will have to rephrase the follow up question so it is a standalone question and can be used by another LLM to search the web for information to answer it.
|
||||
If it is a smple writing task or a greeting (unless the greeting contains a question after it) like Hi, Hello, How are you, etc. than a question then you need to return \`not_needed\` as the response (This is because the LLM won't need to search the web for finding information on this topic).
|
||||
If it is a simple writing task or a greeting (unless the greeting contains a question after it) like Hi, Hello, How are you, etc. than a question then you need to return \`not_needed\` as the response (This is because the LLM won't need to search the web for finding information on this topic).
|
||||
If the user asks some question from some URL or wants you to summarize a PDF or a webpage (via URL) you need to return the links inside the \`links\` XML block and the question inside the \`question\` XML block. If the user wants to you to summarize the webpage or the PDF you need to return \`summarize\` inside the \`question\` XML block in place of a question and the link to summarize in the \`links\` XML block.
|
||||
You must always return the rephrased question inside the \`question\` XML block, if there are no links in the follow-up question then don't insert a \`links\` XML block in your response.
|
||||
|
||||
|
Reference in New Issue
Block a user