mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-06 20:15:17 +02:00
commit
e2d60beba4
9 changed files with 111 additions and 5 deletions
5
surfsense_backend/draw.py
Normal file
5
surfsense_backend/draw.py
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
from app.agents.researcher.graph import graph as researcher_graph
|
||||
from app.agents.researcher.sub_section_writer.graph import graph as sub_section_writer_graph
|
||||
|
||||
print(researcher_graph.get_graph().draw_mermaid())
|
||||
print(sub_section_writer_graph.get_graph().draw_mermaid())
|
||||
|
|
@ -1,7 +1,99 @@
|
|||
---
|
||||
title: Welcome Docs
|
||||
title: Prerequisites
|
||||
description: Required setup's before setting up SurfSense
|
||||
full: true
|
||||
---
|
||||
|
||||
## Introduction
|
||||
|
||||
I love Docs.
|
||||
|
||||
## PGVector installation Guide
|
||||
|
||||
SurfSense requires the pgvector extension for PostgreSQL:
|
||||
|
||||
### Linux and Mac
|
||||
|
||||
Compile and install the extension (supports Postgres 13+)
|
||||
|
||||
```sh
|
||||
cd /tmp
|
||||
git clone --branch v0.8.0 https://github.com/pgvector/pgvector.git
|
||||
cd pgvector
|
||||
make
|
||||
make install # may need sudo
|
||||
```
|
||||
|
||||
See the [installation notes](https://github.com/pgvector/pgvector/tree/master#installation-notes---linux-and-mac) if you run into issues
|
||||
|
||||
### Windows
|
||||
|
||||
Ensure [C++ support in Visual Studio](https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line?view=msvc-170#download-and-install-the-tools) is installed, and run:
|
||||
|
||||
```cmd
|
||||
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||
```
|
||||
|
||||
Note: The exact path will vary depending on your Visual Studio version and edition
|
||||
|
||||
Then use `nmake` to build:
|
||||
|
||||
```cmd
|
||||
set "PGROOT=C:\Program Files\PostgreSQL\16"
|
||||
cd %TEMP%
|
||||
git clone --branch v0.8.0 https://github.com/pgvector/pgvector.git
|
||||
cd pgvector
|
||||
nmake /F Makefile.win
|
||||
nmake /F Makefile.win install
|
||||
```
|
||||
|
||||
See the [installation notes](https://github.com/pgvector/pgvector/tree/master#installation-notes---windows) if you run into issues
|
||||
|
||||
---
|
||||
|
||||
## Google OAuth Setup
|
||||
|
||||
SurfSense user management and authentication works on Google OAuth. Lets set it up.
|
||||
|
||||
1. Login to your [Google Developer Console](https://console.cloud.google.com/)
|
||||
2. Enable People API.
|
||||

|
||||
3. Set up OAuth consent screen.
|
||||

|
||||
4. Create OAuth client ID and secret.
|
||||

|
||||
5. It should look like this.
|
||||

|
||||
|
||||
---
|
||||
|
||||
## File Upload's
|
||||
|
||||
Files are converted to LLM friendly formats using [Unstructured](https://github.com/Unstructured-IO/unstructured)
|
||||
|
||||
1. Get an Unstructured.io API key from [Unstructured Platform](https://platform.unstructured.io/)
|
||||
2. You should be able to generate API keys once registered
|
||||

|
||||
|
||||
---
|
||||
|
||||
## LLM Observability (Optional)
|
||||
|
||||
This is not required for SurfSense to work. But it is always a good idea to monitor LLM interactions. So we do not have those WTH moments.
|
||||
|
||||
1. Get a LangSmith API key from [smith.langchain.com](https://smith.langchain.com/)
|
||||
2. This helps in observing SurfSense Researcher Agent.
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Crawler
|
||||
|
||||
SurfSense have 2 options for saving webpages:
|
||||
- [SurfSense Extension](https://github.com/MODSetter/SurfSense/tree/main/surfsense_browser_extension) (Overall better experience & ability to save private webpages, recommended)
|
||||
- Crawler (If you want to save public webpages)
|
||||
|
||||
**NOTE:** SurfSense currently uses [Firecrawl.py](https://www.firecrawl.dev/) for web crawling. If you plan on using the crawler, you will need to create a Firecrawl account and get an API key.
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Next Steps
|
||||
|
||||
Once you have all prerequisites in place, proceed to the [installation guide](/docs/installation) to set up SurfSense.
|
||||
9
surfsense_web/content/docs/meta.json
Normal file
9
surfsense_web/content/docs/meta.json
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"title": "Setup",
|
||||
"description": "The setup guide for Surfsense",
|
||||
"root": true,
|
||||
"pages": [
|
||||
"---Setup---",
|
||||
"index"
|
||||
]
|
||||
}
|
||||
BIN
surfsense_web/public/docs/google_oauth_client.png
Normal file
BIN
surfsense_web/public/docs/google_oauth_client.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 98 KiB |
BIN
surfsense_web/public/docs/google_oauth_config.png
Normal file
BIN
surfsense_web/public/docs/google_oauth_config.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
BIN
surfsense_web/public/docs/google_oauth_people_api.png
Normal file
BIN
surfsense_web/public/docs/google_oauth_people_api.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 68 KiB |
BIN
surfsense_web/public/docs/google_oauth_screen.png
Normal file
BIN
surfsense_web/public/docs/google_oauth_screen.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 71 KiB |
BIN
surfsense_web/public/docs/langsmith.png
Normal file
BIN
surfsense_web/public/docs/langsmith.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 301 KiB |
BIN
surfsense_web/public/docs/unstructured.png
Normal file
BIN
surfsense_web/public/docs/unstructured.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 108 KiB |
Loading…
Add table
Add a link
Reference in a new issue