Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ EXPOSE 8000
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libmagic1 \
libgl1-mesa-glx \
libgl1-mesa-dri \
libreoffice \
cmake \
poppler-utils \
Expand Down
4 changes: 2 additions & 2 deletions backend/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ async def extract_knowledge_graph_from_file(
model: Type of model to use ('Diffbot'or'OpenAI GPT')

Returns:
Nodes and Relations created in Neo4j databse for the pdf file
Nodes and Relations created in Neo4j database for the pdf file
"""
try:
start_time = time.time()
Expand Down Expand Up @@ -340,7 +340,7 @@ async def get_source_list(
database=Form(None),
email=Form(None)):
"""
Calls 'get_source_list_from_graph' which returns list of sources which already exist in databse
Calls 'get_source_list_from_graph' which returns list of sources which already exist in database
"""
try:
start = time.time()
Expand Down
4 changes: 2 additions & 2 deletions backend/src/communities.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ def create_communities(uri, username, password, database,model=COMMUNITY_CREATIO
clear_communities(gds)

graph_project = create_community_graph_projection(gds)
write_communities_sucess = write_communities(gds, graph_project)
if write_communities_sucess:
write_communities_success = write_communities(gds, graph_project)
if write_communities_success:
logging.info("Starting Community properties creation process.")
create_community_properties(gds,model)
logging.info("Communities creation process completed successfully.")
Expand Down
File renamed without changes.
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3"

services:
backend:
build:
Expand Down
2 changes: 1 addition & 1 deletion docs/backend/backend_docs.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ This API is responsible for -

** SentenceTransformer embeddingds are used by default, also embeddings are made configurable to use either OpenAIEmbeddings or VertexAIEmbeddings.

** Vector index is created in databse on embeddingds created for chunks.
** Vector index is created in database on embeddingds created for chunks.

**API Parameters :**

Expand Down
4 changes: 2 additions & 2 deletions experiments/PDF_to_KG_using_Rebel.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
},
{
"cell_type": "code",
"execution_count": 135,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -266,7 +266,7 @@
" \"Nodes\" : distinct_nodes,\n",
" \"Relations\" : relations }\n",
" \n",
"json_file_path = '../data/llm_comparision.json'\n",
"json_file_path = '../data/llm_comparison.json'\n",
"with open(json_file_path, 'r') as json_file :\n",
" data = json.load(json_file)\n",
" \n",
Expand Down
2 changes: 1 addition & 1 deletion experiments/PDF_to_kg_using_OpenAI.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
" \"Nodes\" : list(distinct_nodes),\n",
" \"Relations\" : relations }\n",
"\n",
"json_file_path = '../data/llm_comparision.json'\n",
"json_file_path = '../data/llm_comparison.json'\n",
"with open(json_file_path, 'r') as json_file :\n",
" data = json.load(json_file)\n",
" \n",
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/components/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -638,16 +638,16 @@ const Content: React.FC<ContentProps> = ({
showNormalToast(response.data.message as string);
retryOnclose();
} else {
const isStartFromBegining = retryoption === RETRY_OPIONS[0] || retryoption === RETRY_OPIONS[1];
const isStartFromBeginning = retryoption === RETRY_OPIONS[0] || retryoption === RETRY_OPIONS[1];
setFilesData((prev) => {
return prev.map((f) => {
return f.name === filename
? {
...f,
status: 'Ready to Reprocess',
processingProgress: isStartFromBegining ? 0 : f.processingProgress,
nodesCount: isStartFromBegining ? 0 : f.nodesCount,
relationshipsCount: isStartFromBegining ? 0 : f.relationshipsCount,
processingProgress: isStartFromBeginning ? 0 : f.processingProgress,
nodesCount: isStartFromBeginning ? 0 : f.nodesCount,
relationshipsCount: isStartFromBeginning ? 0 : f.relationshipsCount,
}
: f;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function ConnectionModal({
errorMessage,
setIsGCSActive,
setShowDisconnectButton,
// setChunksToBeProces,
// setChunksToBeProcess,
} = useCredentials();
const [isLoading, setIsLoading] = useState<boolean>(false);
const [searchParams, setSearchParams] = useSearchParams();
Expand Down
10 changes: 5 additions & 5 deletions frontend/src/context/UserCredentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const UserConnection = createContext<ContextProps>({
setShowDisconnectButton: () => null,
isGCSActive: false,
setIsGCSActive: () => null,
// chunksToBeProces: 50,
// setChunksToBeProces: () => null,
// chunksToBeProcess: 50,
// setChunksToBeProcess: () => null,
});
export const useCredentials = () => {
const userCredentials = useContext(UserConnection);
Expand All @@ -39,7 +39,7 @@ const UserCredentialsWrapper: FunctionComponent<Props> = (props) => {
const [errorMessage, setErrorMessage] = useState<string>('');
const [showDisconnectButton, setShowDisconnectButton] = useState<boolean>(false);
const [isGCSActive, setIsGCSActive] = useState<boolean>(false);
// const [chunksToBeProces, setChunksToBeProces] = useState<number>(50);
// const [chunksToBeProcess, setChunksToBeProcess] = useState<number>(50);
const value = {
userCredentials,
setUserCredentials,
Expand All @@ -57,8 +57,8 @@ const UserCredentialsWrapper: FunctionComponent<Props> = (props) => {
setShowDisconnectButton,
isGCSActive,
setIsGCSActive,
// chunksToBeProces,
// setChunksToBeProces,
// chunksToBeProcess,
// setChunksToBeProcess,
};
const { pathname } = useLocation();
useEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/services/ConnectAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const connectAPI = async () => {

const envConnectionAPI = async () => {
try {
const conectionUrl = `/backend_connection_configuration`;
const response = await api.post(conectionUrl);
const connectionUrl = `/backend_connection_configuration`;
const response = await api.post(connectionUrl);
return response;
} catch (error) {
console.log('API Connection error', error);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -779,8 +779,8 @@ export interface ContextProps {
setShowDisconnectButton: Dispatch<SetStateAction<boolean>>;
isGCSActive: boolean;
setIsGCSActive: Dispatch<SetStateAction<boolean>>;
// chunksToBeProces: number;
// setChunksToBeProces: Dispatch<SetStateAction<number>>;
// chunksToBeProcess: number;
// setChunksToBeProcess: Dispatch<SetStateAction<number>>;
}
export interface MessageContextType {
messages: Messages[] | [];
Expand Down