Compare commits

..

16 Commits

Author SHA1 Message Date
ItzCrazyKns
874505cd0e feat(package): bump version 2024-11-19 16:32:30 +05:30
ItzCrazyKns
b4a80d8ca0 feat(dockerfile): downgrade node version, closes #473 2024-11-19 14:40:24 +05:30
ItzCrazyKns
c7bab91803 feat(webSearchAgent): prevent excess results 2024-11-19 10:43:50 +05:30
ItzCrazyKns
a58adbfecc Update README.md 2024-11-17 23:01:24 +05:30
ItzCrazyKns
9e746aea5e feat(readme): remove ? from image URL 2024-11-17 23:01:02 +05:30
ItzCrazyKns
5e1331144a feat(readme): update readme cache 2024-11-17 22:59:29 +05:30
ItzCrazyKns
d789c970b1 feat(assets): update screenshot 2024-11-17 22:55:57 +05:30
ItzCrazyKns
e699cb2921 Merge branch 'master' of https://github.com/ItzCrazyKns/Perplexica 2024-11-17 19:49:22 +05:30
ItzCrazyKns
03eed9693b Merge branch 'pr/451' 2024-11-17 19:48:56 +05:30
ItzCrazyKns
011570dd9b Merge pull request #421 from sjiampojamarn/discover-nit
Make Discover link to a new tab
2024-11-17 19:40:05 +05:30
ItzCrazyKns
18529391f4 Merge branch 'master' of https://github.com/ItzCrazyKns/Perplexica 2024-11-14 13:35:15 +05:30
ItzCrazyKns
a1a7470ca6 feat(package): update markdown-to-jsx 2024-11-14 13:35:10 +05:30
ItzCrazyKns
10c5ac1076 Merge pull request #448 from bastipnt/master
add db setup to CONTRIBUTING.md
2024-11-09 20:54:14 +05:30
Sharun
7c01d2656e fix(EmptyChatMessageInput): focus on mount 2024-11-04 22:00:08 -06:00
litc0de
afb4786ac0 add db setup to CONTRIBUTING.md 2024-11-03 10:33:01 +01:00
sjiampojamarn
687cbb365f Discover link to new page 2024-10-20 17:23:43 -07:00
10 changed files with 15 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 KiB

After

Width:  |  Height:  |  Size: 641 KiB

View File

@@ -18,7 +18,8 @@ Before diving into coding, setting up your local environment is key. Here's what
1. In the root directory, locate the `sample.config.toml` file. 1. In the root directory, locate the `sample.config.toml` file.
2. Rename it to `config.toml` and fill in the necessary configuration fields specific to the backend. 2. Rename it to `config.toml` and fill in the necessary configuration fields specific to the backend.
3. Run `npm install` to install dependencies. 3. Run `npm install` to install dependencies.
4. Use `npm run dev` to start the backend in development mode. 4. Run `npm run db:push` to set up the local sqlite.
5. Use `npm run dev` to start the backend in development mode.
### Frontend ### Frontend

View File

@@ -1,6 +1,6 @@
# 🚀 Perplexica - An AI-powered search engine 🔎 <!-- omit in toc --> # 🚀 Perplexica - An AI-powered search engine 🔎 <!-- omit in toc -->
![preview](.assets/perplexica-screenshot.png) ![preview](.assets/perplexica-screenshot.png?)
## Table of Contents <!-- omit in toc --> ## Table of Contents <!-- omit in toc -->

View File

@@ -1,4 +1,4 @@
FROM node:alpine FROM node:20.18.0-alpine
ARG NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001 ARG NEXT_PUBLIC_WS_URL=ws://127.0.0.1:3001
ARG NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api ARG NEXT_PUBLIC_API_URL=http://127.0.0.1:3001/api

View File

@@ -1,6 +1,6 @@
{ {
"name": "perplexica-backend", "name": "perplexica-backend",
"version": "1.9.2", "version": "1.9.3",
"license": "MIT", "license": "MIT",
"author": "ItzCrazyKns", "author": "ItzCrazyKns",
"scripts": { "scripts": {

View File

@@ -337,7 +337,7 @@ const createBasicWebSearchAnsweringChain = (
} }
if (query.toLocaleLowerCase() === 'summarize') { if (query.toLocaleLowerCase() === 'summarize') {
return docs; return docs.slice(0, 15)
} }
const docsWithContent = docs.filter( const docsWithContent = docs.filter(

View File

@@ -83,6 +83,7 @@ const Page = () => {
href={`/?q=Summary: ${item.url}`} href={`/?q=Summary: ${item.url}`}
key={i} key={i}
className="max-w-sm rounded-lg overflow-hidden bg-light-secondary dark:bg-dark-secondary hover:-translate-y-[1px] transition duration-200" className="max-w-sm rounded-lg overflow-hidden bg-light-secondary dark:bg-dark-secondary hover:-translate-y-[1px] transition duration-200"
target="_blank"
> >
<img <img
className="object-cover w-full aspect-video" className="object-cover w-full aspect-video"

View File

@@ -40,6 +40,8 @@ const EmptyChatMessageInput = ({
document.addEventListener('keydown', handleKeyDown); document.addEventListener('keydown', handleKeyDown);
inputRef.current?.focus();
return () => { return () => {
document.removeEventListener('keydown', handleKeyDown); document.removeEventListener('keydown', handleKeyDown);
}; };

View File

@@ -1,6 +1,6 @@
{ {
"name": "perplexica-frontend", "name": "perplexica-frontend",
"version": "1.9.2", "version": "1.9.3",
"license": "MIT", "license": "MIT",
"author": "ItzCrazyKns", "author": "ItzCrazyKns",
"scripts": { "scripts": {
@@ -18,7 +18,7 @@
"clsx": "^2.1.0", "clsx": "^2.1.0",
"langchain": "^0.1.30", "langchain": "^0.1.30",
"lucide-react": "^0.363.0", "lucide-react": "^0.363.0",
"markdown-to-jsx": "^7.4.5", "markdown-to-jsx": "^7.6.2",
"next": "14.1.4", "next": "14.1.4",
"next-themes": "^0.3.0", "next-themes": "^0.3.0",
"react": "^18", "react": "^18",

View File

@@ -2210,10 +2210,10 @@ lucide-react@^0.363.0:
resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-0.363.0.tgz#2bb1f9d09b830dda86f5118fcd097f87247fe0e3" resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-0.363.0.tgz#2bb1f9d09b830dda86f5118fcd097f87247fe0e3"
integrity sha512-AlsfPCsXQyQx7wwsIgzcKOL9LwC498LIMAo+c0Es5PkHJa33xwmYAkkSoKoJWWWSYQEStqu58/jT4tL2gi32uQ== integrity sha512-AlsfPCsXQyQx7wwsIgzcKOL9LwC498LIMAo+c0Es5PkHJa33xwmYAkkSoKoJWWWSYQEStqu58/jT4tL2gi32uQ==
markdown-to-jsx@^7.4.5: markdown-to-jsx@^7.6.2:
version "7.4.6" version "7.6.2"
resolved "https://registry.yarnpkg.com/markdown-to-jsx/-/markdown-to-jsx-7.4.6.tgz#1ea0018c549bf00c9ce35e8f4ea57e48028d9cf7" resolved "https://registry.yarnpkg.com/markdown-to-jsx/-/markdown-to-jsx-7.6.2.tgz#254cbf7d412a37073486c0a2dd52266d2191a793"
integrity sha512-3cyNxI/PwotvYkjg6KmFaN1uyN/7NqETteD2DobBB8ro/FR9jsHIh4Fi7ywAz0s9QHRKCmGlOUggs5GxSWACKA== integrity sha512-gEcyiJXzBxmId2Y/kydLbD6KRNccDiUy/Src1cFGn3s2X0LZZ/hUiEc2VisFyA5kUE3SXclTCczjQiAuqKZiFQ==
md5@^2.3.0: md5@^2.3.0:
version "2.3.0" version "2.3.0"